Skip to content

Instantly share code, notes, and snippets.

@tokuda109
Created October 8, 2021 03:25
Show Gist options
  • Save tokuda109/264d93e86b20ef9142b946208ffa6f28 to your computer and use it in GitHub Desktop.
Save tokuda109/264d93e86b20ef9142b946208ffa6f28 to your computer and use it in GitHub Desktop.
Investigation of lazy hydration
<template>
<LazyHydrate never>
<Child>
<Child>
<Child>
<Child>
<p>This page uses vue-lazy-hydration library with never attribute.</p>
</Child>
</Child>
</Child>
</Child>
</LazyHydrate>
</template>
<script lang="ts">
import Vue from 'vue';
import Child from '~/components/Child.vue';
import LazyHydrate from 'vue-lazy-hydration';
export default Vue.extend({
components: { Child, LazyHydrate }
});
</script>
<template>
<LazyHydrate whenIdle>
<Child>
<Child>
<Child>
<Child>
<p>This page uses vue-lazy-hydration library.</p>
</Child>
</Child>
</Child>
</Child>
</LazyHydrate>
</template>
<script lang="ts">
import Vue from 'vue';
import Child from '~/components/Child.vue';
import LazyHydrate from 'vue-lazy-hydration';
export default Vue.extend({
components: { Child, LazyHydrate }
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment