Skip to content

Commit

Permalink
fix(style-vars): apply css vars in post flush effect
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Nov 16, 2020
1 parent 713fcb1 commit 3a6b120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-dom/src/helpers/useCssVars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function useCssVars(

const setVars = () =>
setVarsOnVNode(instance.subTree, getter(instance.proxy!), prefix)
onMounted(() => watchEffect(setVars))
onMounted(() => watchEffect(setVars, { flush: 'post' }))
onUpdated(setVars)
}

Expand Down

0 comments on commit 3a6b120

Please sign in to comment.