Skip to content

Commit

Permalink
fix: update function
Browse files Browse the repository at this point in the history
  • Loading branch information
teclone committed Apr 17, 2023
1 parent dadbf89 commit 77d606e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const createEffectCleaner = <T>(
// clear timeouts
if (timeoutIds) {
Object.keys(timeoutIds).forEach((key) => {
clearInterval(timeoutIds[key]);
clearTimeout(timeoutIds[key]);
});
}
};
Expand Down

0 comments on commit 77d606e

Please sign in to comment.