Skip to content

Commit 3a6b120

Browse files
committed
fix(style-vars): apply css vars in post flush effect
1 parent 713fcb1 commit 3a6b120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-dom/src/helpers/useCssVars.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function useCssVars(
3030

3131
const setVars = () =>
3232
setVarsOnVNode(instance.subTree, getter(instance.proxy!), prefix)
33-
onMounted(() => watchEffect(setVars))
33+
onMounted(() => watchEffect(setVars, { flush: 'post' }))
3434
onUpdated(setVars)
3535
}
3636

0 commit comments

Comments
 (0)