Skip to content

Using hooks inside 'createBrowserRouter' 'loader' #9246

Closed Answered by tkapitein
ralph993 asked this question in Q&A
Discussion options

You must be logged in to vote

It is not possible to use hooks inside loaders. This article could help you integrating with React Query.

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@ralph993
Comment options

Answer selected by MichaelDeBoey
Comment options

You must be logged in to vote
1 reply
@MrBista
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ralph993
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants