How do I pre-fill data from a server component? #4128
Answered
by
ManuLpz4
jeremytenjo
asked this question in
Q&A
-
|
How do I pre-fill data from a server component? The current docs are very vague and don't show how to use unstable_serialize |
Beta Was this translation helpful? Give feedback.
Answered by
ManuLpz4
Jul 9, 2025
Replies: 2 comments
-
|
in the fallbackData key in the options UPDATE: You can also populate keys with |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jeremytenjo
-
|
Have you guys figured this out? Currently im passing a promise into SWRConfig fallback (Nextjs16 with cache components). But it does not work when I have filtering with searchParams. I cant pass keys as promises. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

in the fallbackData key in the options
UPDATE: You can also populate keys with
SWRConfigserver-side