FormidableLabs / FormidableLabs/react-ssr-prepass

Add useInsertionEffect to the dispatcher

Open
#84 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
603
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Hello,

The dispatcher is missing `useInsertionEffect` introduced in React 18. It should be mapped to a noop function as useLayoutEffect.

It would be just a one-line addition under this https://github.com/FormidableLabs/react-ssr-prepass/blob/master/src/internals/dispatcher.js#L356 .

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.