Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
atjohnfeng wants to merge 1 commit into FormidableLabs:master
base: master
Choose a base branch
Loading
from atjohnfeng:master

Conversation

Copy link

@atjohnfeng atjohnfeng commented Mar 20, 2023

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

dios-david and luixo reacted with rocket emoji
Copy link

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?

Copy link

Also tagging in here. Is there any chance to merge this? We are upgrading form Chakra UI v2 to v3 and it uses the useInsertionEffect. This means the react-ssr-prepass logic is not working any more.
Would be really great to get a release for this.

Tagging @kitten and @carbonrobot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /