Skip to content

Commit

Permalink
perf(useCssVar): only listen for style changes (#3057)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred-Skyblue committed May 4, 2023
1 parent 0bd7399 commit 3233af2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/useCssVar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ export function useCssVar(

if (observe) {
useMutationObserver(elRef, updateCssVar, {
attributes:
true,
attributeFilter: ['style'],
window,
})
}
Expand Down

0 comments on commit 3233af2

Please sign in to comment.