Skip to content
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

Use of the dark/light mode example causes react app to freeze #434

Closed
timsoulm opened this issue Dec 15, 2021 · 2 comments
Closed

Use of the dark/light mode example causes react app to freeze #434

timsoulm opened this issue Dec 15, 2021 · 2 comments

Comments

@timsoulm
Copy link

timsoulm commented Dec 15, 2021

I'm attempting to use the dark/light mode example in my react app exactly how it is written in the examples: https://github.com/Light-Keeper/react-singleton-hook#darklight-mode-switch

If there is at least one reference in a react component to useDarkMode, then calling setDarkMode will cause the app to freeze. I'm not sure if its due to issues with this module or something else. I've tried versions 3.2.1 and then the latest 3.2.3

@Light-Keeper
Copy link
Owner

@timsoulm, could you please provide a minimal repository with a complete reproducible example? the issue might be a mixture of your react, react-dom, and bundler settings.

@timsoulm
Copy link
Author

I've moved over to using Saga in the project which seems to work better for my usecase at the moment. Feel free to close this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants