setState in getStaticProps #1105
Unanswered
ivanjeremic
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I try to move from ReactQuery to SWR and I want to use Pre-rendering https://swr.vercel.app/docs/with-nextjs#pre-rendering but if you take a look at my current
useQuery
hook from ReactQuery I depend on setting the state for pages inside my query butgetStaticProps
does not allow the use of hooks so how would I go about this?ReactQuery currently
Beta Was this translation helpful? Give feedback.
All reactions