Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable lazy hydrate for specific routes #1037

Open
andrevferreiraa opened this issue Jun 17, 2024 · 2 comments
Open

Disable lazy hydrate for specific routes #1037

andrevferreiraa opened this issue Jun 17, 2024 · 2 comments

Comments

@andrevferreiraa
Copy link

Is it currently possible to disable the lazy-hydrate for specific pages?

Most lazy hydrations already have this options so maybe it would be nice to have it here as well!

Many thanks

@ThornWalli
Copy link
Contributor

Hello @andrevferreiraa,

Unfortunately, this is not possible in speedkitHydrate to change its behavior at runtime.
https://github.com/basics/nuxt-booster/blob/main/src/runtime/hydrate.js

A LazyHydrate wrapper is used directly when it is called.

How do you register your components?

Do you use a plugin to register the component globally or do you integrate it directly into the pages?
Alternatively, the component would have to be integrated directly.

@ThornWalli
Copy link
Contributor

Hello @andrevferreiraa,

with a new vue version there is now also the possibility to overwrite the hydrate.

I have an example of a route check in the documentation.

https://basics.github.io/nuxt-booster/composables/useBoosterHydrate.html#useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants