maoberlehner / vue-lazy-hydration

Lazy Hydration of Server-Side Rendered Vue.js Components
MIT License
1.18k stars 52 forks source link

Doesn't work app after update to beta #77

Closed SyloRei closed 3 years ago

SyloRei commented 3 years ago

I have 2 versions of my app: SSR and CSR. After updating from the alpha version to the beta version, I got a broken CSR version.

For example, my async component definition: Vue.component( 'Element', hydrateWhenVisible( () => import(/* webpackChunkName: "element" */ './tile/Element.vue'), { observerOptions: { rootMargin: '100px' } }, ), );

Before updating, all was worked.

Error in the log doesn't exist. I think my app simply doesn't hydrate.

maoberlehner commented 3 years ago

Please provider a minimal reproduction (e.g. CodeSandbox). Thanks!

SyloRei commented 3 years ago

Sorry for the bad report. Here minimal reproduction: https://codesandbox.io/s/mystifying-snyder-siesg

You can change a version of the library and see the difference.

maoberlehner commented 3 years ago

Can you test with the latest version beta.4 I fixed a lot of stuff.

SyloRei commented 3 years ago

Recent fixes have repaired it. Thank you!