You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just spent a bit of time debugging an intermittent issue that prevented hydration of a page.
I'm pretty certain now that the issue is to do with an a value that changes after the page is loaded, and passed as an attr to a component in lazy hydrate. The value sometimes changes before the lazy-hydration and so the rendered html differs to the ssr html, hydration bails, and lazy-hydrate throws an error. The page then doesn't respond to inputs.
This makes complete sense, and wouldn't expect it to work otherwise, but this is such a simple mistake to make that it might warrant a caveat on the readme.
The text was updated successfully, but these errors were encountered:
After read source code: at core this package transforms normal component to async one,so this package can be used under one hidden condition: the component could be transfromed to async one;
So to your question:
your component obviously could not be changed to an async one, so this package should not be used
Changing showDescription in mounted hook will lead to a hydration error when BaseSection becomes visible (while doing the same without lazy hydration is safe)
I just spent a bit of time debugging an intermittent issue that prevented hydration of a page.
I'm pretty certain now that the issue is to do with an a value that changes after the page is loaded, and passed as an attr to a component in lazy hydrate. The value sometimes changes before the lazy-hydration and so the rendered html differs to the ssr html, hydration bails, and lazy-hydrate throws an error. The page then doesn't respond to inputs.
This makes complete sense, and wouldn't expect it to work otherwise, but this is such a simple mistake to make that it might warrant a caveat on the readme.
The text was updated successfully, but these errors were encountered: