From 153cd4c2c25379cb6968113466e3500cd4a4ba54 Mon Sep 17 00:00:00 2001 From: wnhlee <2wheeh@gmail.com> Date: Sun, 14 Apr 2024 05:04:22 +0900 Subject: [PATCH] cleanup clears timer ref surely --- packages/lexical-playground/src/hooks/useReport.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/lexical-playground/src/hooks/useReport.ts b/packages/lexical-playground/src/hooks/useReport.ts index b2c9328374f..6f89d9f00c3 100644 --- a/packages/lexical-playground/src/hooks/useReport.ts +++ b/packages/lexical-playground/src/hooks/useReport.ts @@ -38,6 +38,7 @@ export default function useReport(): ( const cleanup = useCallback(() => { if (timer.current !== null) { clearTimeout(timer.current); + timer.current = null; } if (document.body) {