8000 fix(useMutationObserver): stop watching before cleaning up (#4037) · vueuse/vueuse@489a9ff · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 489a9ff

Browse files
authored
fix(useMutationObserver): stop watching before cleaning up (#4037)
1 parent 9037d60 commit 489a9ff

File tree

1 file changed

+1
-1
lines changed
  • packages/core/useMutationObserver

1 file changed

+1
-1
lines changed

packages/core/useMutationObserver/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ export function useMutationObserver(
6060
}
6161

6262
const stop = () => {
63-
cleanup()
6463
stopWatch()
64+
cleanup()
6565
}
6666

6767
tryOnScopeDispose(stop)

0 commit comments

Comments
 (0)
0