Skip to content

Instantly share code, notes, and snippets.

View StevenGFX's full-sized avatar
🚀
Knocking it out of the planet! 🌎

Steven Williams StevenGFX

🚀
Knocking it out of the planet! 🌎
View GitHub Profile
@StevenGFX
StevenGFX / nuxt3-watch-force-update.md
Last active February 23, 2024 18:49
Nuxt 3 Watch Force Update

Component

const forceUpdate = ref(0);

watch(() => activeRoleFilters, () => {
  forceUpdate.value++; // Increment to force reactivity
}, { deep: true });