We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 713fcb1 commit 3a6b120Copy full SHA for 3a6b120
packages/runtime-dom/src/helpers/useCssVars.ts
@@ -30,7 +30,7 @@ export function useCssVars(
30
31
const setVars = () =>
32
setVarsOnVNode(instance.subTree, getter(instance.proxy!), prefix)
33
- onMounted(() => watchEffect(setVars))
+ onMounted(() => watchEffect(setVars, { flush: 'post' }))
34
onUpdated(setVars)
35
}
36
0 commit comments