Lazy Hydration: Possible to disable hydration entirely? #12581
Unanswered
michaelhthomas
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Vue 3.5 added support for lazy component hydration, which is very exciting! I was previously using
vue3-lazy-hydration
for this functionality, which provided a helper namedhydrateNever
which would entirely disable component loading / hydration. My understanding is that something similar could be achieved by passing a do-nothing function as the hydration helper, as shown below.Unfortunately, though I believe this does prevent the component from being hydrated, the component module is still loaded unnecessarily. Is I there any way to prevent the component from being loaded entirely (i.e. prevent the
loader
function from being called), matching the behavior ofhydrateNever
fromvue3-lazy-hydration
?Beta Was this translation helpful? Give feedback.
All reactions