Skip to content

Commit

Permalink
cleanup clears timer ref surely
Browse files Browse the repository at this point in the history
  • Loading branch information
2wheeh committed Apr 13, 2024
1 parent 84d7ed4 commit 153cd4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/lexical-playground/src/hooks/useReport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export default function useReport(): (
const cleanup = useCallback(() => {
if (timer.current !== null) {
clearTimeout(timer.current);
timer.current = null;
}

if (document.body) {
Expand Down

0 comments on commit 153cd4c

Please sign in to comment.