Replies: 1 comment
-
when would you expect it to revalidate? I would:
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
I tried testing out
HydrationBoundary
with NextJS for server-side rendering of a component showing a random number.As in documentation ("Advanced SSR guide"), I've used
HydrationBoundary
in a server rendered component, prefetched data there, and passed the data to a client component, the code is given below.But the correct data is shown only once: when I load the page for the first time after the application starts.
The layout:
The header component
It seems like the data is prefetched (since
isLoading
orisError
are never true), but it only shows the random number from the first time thegetTest
function was executed (it is just a fetch to a rng api).I have searched and tried different solutions (at first, thought the problem is with NextJS framework itself), but nothing worked.
Beta Was this translation helpful? Give feedback.
All reactions