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

React has detected a change in the order of Hooks called by SpaceInternal #37

Closed
thekapadia opened this issue Oct 17, 2019 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@thekapadia
Copy link

@aeagle I get this error on the console when I change the zIndex programmatically.

Warning: React has detected a change in the order of Hooks called by SpaceInternal. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://fb.me/rules-of-hooks

   Previous render            Next render
   ------------------------------------------------------
1. useRef                     useRef
2. useState                   useState
3. useRef                     useRef
4. useRef                     useRef
5. useEffect                  useEffect
6. useEffect                  useEffect
7. useEffect                  useEffect
8. useContext                 useContext
9. undefined                  useContext
@aeagle
Copy link
Owner

aeagle commented Oct 20, 2019

@thekapadia I believe I have resolved the issue in version 0.1.18. I was using a hook within a conditional expression.

@thekapadia
Copy link
Author

@aeagle Yes, this error does not occur in 0.1.18. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants