Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6325d09 commit 0a23b94Copy full SHA for 0a23b94
theme/src/client/components/Posts/VPPosts.vue
@@ -7,7 +7,7 @@ import VPPostsExtract from '@theme/Posts/VPPostsExtract.vue'
7
import VPPostsNav from '@theme/Posts/VPPostsNav.vue'
8
import VPPostsTags from '@theme/Posts/VPPostsTags.vue'
9
import VPTransitionFadeSlideY from '@theme/VPTransitionFadeSlideY.vue'
10
-import { watch } from 'vue'
+import { onBeforeUnmount, watch } from 'vue'
11
import { forceUpdateCollection, useData } from '../../composables/index.js'
12
13
const props = defineProps<{
@@ -24,6 +24,8 @@ watch(
24
() => forceUpdateCollection(props.homePosts ? (props.collection || true) : undefined),
25
{ immediate: true },
26
)
27
+
28
+onBeforeUnmount(() => forceUpdateCollection(undefined))
29
</script>
30
31
<template>
0 commit comments