Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
linzhe141 committed Aug 9, 2024
1 parent 63bb92b commit 3c7cdec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/runtime-dom/src/helpers/useCssVars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
onBeforeUpdate,
onMounted,
onUnmounted,
queuePostFlushCb,
warn,
watchPostEffect,
} from '@vue/runtime-core'
Expand Down Expand Up @@ -49,7 +50,7 @@ export function useCssVars(getter: (ctx: any) => Record<string, string>) {
})

onBeforeUpdate(() => {
watchPostEffect(setVars)
queuePostFlushCb(setVars)
})

onMounted(() => {
Expand Down

0 comments on commit 3c7cdec

Please sign in to comment.