How to use unstable_serialize for SSR or SSG fallback Next.JS page with SWR 2.0 #2688
Unanswered
SebastienSusini
asked this question in
Q&A
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, i'm trying to migrate from SWR V.1.* to SWR v.2.*.
My fallback doesn't work and I have the impression that the documentation for the V2, it still shows an example with old SWR key:
const { data } = useSWR(['api', 'article', 1], fetcher)
hasn't been updated on this part: https://swr.vercel.app/docs/with-nextjs#complex-keys
Thank's!
Beta Was this translation helpful? Give feedback.
All reactions