8000 Update packages/core/useRefHistory/index.ts · vueuse/vueuse@122e6cc · GitHub
[go: up one dir, main page]

Skip to content

Commit 122e6cc

Browse files
Update packages/core/useRefHistory/index.ts
Co-authored-by: Robin <robin.kehl@singular-it.de>
1 parent 56e27df commit 122e6cc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/core/useRefHistory/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,8 @@ export function useRefHistory<Raw, Serialized = Raw>(
150150
// so we do not trigger an extra commit in the async watcher
151151
ignorePrevAsyncUpdates()
152152

153-
if (shouldCommit) {
154-
if (!shouldCommit(lastRawValue, source.value))
155-
return
156-
}
153+
if (!shouldCommit(lastRawValue, source.value))
154+
return
157155

158156
lastRawValue = source.value
159157
manualCommit()

0 commit comments

Comments
 (0)
0