diff --git a/src/index.ts b/src/index.ts index c55ec39..28b73fa 100644 --- a/src/index.ts +++ b/src/index.ts @@ -84,7 +84,7 @@ export const createEffectCleaner = ( // clear timeouts if (timeoutIds) { Object.keys(timeoutIds).forEach((key) => { - clearInterval(timeoutIds[key]); + clearTimeout(timeoutIds[key]); }); } };