Created
October 8, 2021 03:25
-
-
Save tokuda109/264d93e86b20ef9142b946208ffa6f28 to your computer and use it in GitHub Desktop.
Investigation of lazy hydration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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