Replies: 1 comment
-
I made a function ( I then placed it inside return hydrate({ beforeRender }).then(() => {
initOnDemandEntries()
let buildIndicatorHandler = () => {} And I define const beforeRender = async () => {
await displayContent()
await delayHydration()
} The And it looks like that does the trick. I'll open an PR soon, I just need to figure out how to read from the If I struggle I'll just open the PR as WIP and ask for help 😅 . EditI opened a PR #40404, hopefully it can be discussed further there. |
Beta Was this translation helpful? Give feedback.
-
Describe the feature you'd like to request
Currently, there's no great way (that I'm aware of) to test server-only HTML in development. I have to:
Describe the solution you'd like
I need an easy way to see what my page looks like before hydration. Ideally, with a way to force it. Maybe this should be implemented in React DevTools instead but this will likely take a while. A quick hacky (but official) way would be nice. E.g. a magic
?pause-hydration
that renders server HTML + a "play" button to manually kick off hydrationDescribe alternatives you've considered
Beta Was this translation helpful? Give feedback.
All reactions