-
I'm working on a Field component that creates its own reference in state when it first gets loaded.
This throws an error If I move useStore into the useEffect hook, it obviously doesn't work because the JSX relies on How do I ensure that this happens in the correct order? |
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
Feb 1, 2022
Replies: 1 comment 5 replies
-
You can't change the order, but you can expect that first render is undefined, and handles the undefined issue. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
lkdm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can't change the order, but you can expect that first render is undefined, and handles the undefined issue.