From 27c28fde2fbb9ae49f2f2e4e5e8f594397773045 Mon Sep 17 00:00:00 2001 From: Chris Towles Date: Thu, 24 Apr 2025 23:28:11 -0400 Subject: [PATCH] fix(cache): fix issue where value watch could get out of sync --- src/runtime/components/MDCCached.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/components/MDCCached.vue b/src/runtime/components/MDCCached.vue index 728c39be..db1f79c1 100644 --- a/src/runtime/components/MDCCached.vue +++ b/src/runtime/components/MDCCached.vue @@ -108,7 +108,7 @@ const body = computed(() => props.excerpt ? data.value?.excerpt : data.value?.bo watch(() => props.value, () => { refresh() -}) +}, { immediate: true }) // Simple string hashing function function hashString(str: string | object) {