react-ssr-prepass icon indicating copy to clipboard operation
react-ssr-prepass copied to clipboard

Ignore usage of useInsertionEffect (hook introduced in React 18) in dispatcher

Open atjohnfeng opened this issue 1 year ago • 1 comments

useInsertionEffect is a new hook introduced in React18 and can be an alternative way to useLayoutEffect to insert styles which does not run on the server.

useInsertionEffect: https://react.dev/reference/react/useInsertionEffect

atjohnfeng avatar Mar 20 '23 21:03 atjohnfeng

Hey @kitten - tagging you as you seem to be the most active maintainer here :) I've just ran into an issue when using useInsertionEffect with React 18 and react-ssr-prepass. This change by @atjohnfeng seem to solve the issue for me. Do you think you can merge and release this?

dios-david avatar Jun 06 '23 17:06 dios-david