Skip to content

Warning: useRouter must be used inside a <RouterProvider> component! Error Component Stack #2978

Answered by schiller-manuel
imSamiul asked this question in Q&A
Discussion options

You must be logged in to vote

just import the router returned from createRouter (if in another file) and directly reference it

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@imSamiul
Comment options

@schiller-manuel
Comment options

Answer selected by imSamiul
@schiller-manuel
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
2 participants