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
Labels
bug

Comments

@thekapadia
Copy link

@thekapadia thekapadia commented Oct 17, 2019

@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

This comment has been minimized.

Copy link
Owner

@aeagle 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

This comment has been minimized.

Copy link
Author

@thekapadia thekapadia commented Oct 22, 2019

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

@thekapadia thekapadia closed this Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.