Skip to content
Discussion options

You must be logged in to vote

Hi, the error you're getting indicates that you need to handle your side effect differently. You cannot return <Loading/> early and call useEffect after; that would be a violation of The Rule of Hooks
Besides, you probably need to include data in the hook dependency array. Otherwise, the callback would only run once.

Is it possible to make this request when the user signs in and store it alongside the other session info?

You can try to use the JWT & session callbacks.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by justsharan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants