kue
Is it possible to use 'hydrate-never' with '<component :is="....' ?
Do you have any resource what Nuxt hook to use to strip out the JS and load it when the
hydrate
function called? I tried to implement the basic with hydrateOnVisible
and suspense but the JS is loaded immediately even with artificial delay on the loader, but it actually hydrate on visible.
The other quirks is when the Suspense
is not wrapped with ClientOnly
component, the page will stuck until the async dependency resolved and the fallback not showing at all. I want to keep the template SSR, just like the auto-import lazy hydration (unfortunately that my project is have a bunch of component that live outside components
folder, so I decide to disable the auto-import)42 replies
Is it possible to use 'hydrate-never' with '<component :is="....' ?
Sorry for the jump in. So, basically the PR is to enable the experimental lazy hydration feature without auto-imports? If I want to enable lazy hydration without that flag, I need to define it with
defineAsyncComponent
and hydrateOn*
method but the js is still loaded?42 replies
How to access environment variables or runtime config outside of Nuxt context?
I needed it before because I think its require less rewrite (I'm migrating from Nuxt 2 to 3).
Then I changed my mind after trying out the repository pattern. It works with previously defined axios function; just a little bit move things around.
6 replies