Skip to content

Commit

Permalink
Fix autoScrollInterval leak
Browse files Browse the repository at this point in the history
  • Loading branch information
enzheng128 committed Mar 1, 2023
1 parent 5c58f0f commit 240d518
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/hooks/utilities/useAutoScroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ export function useAutoScroller({
JSON.stringify(threshold),
]
);

useEffect(() => clearAutoScrollInterval, [clearAutoScrollInterval]);
}

interface ScrollIntent {
Expand Down

0 comments on commit 240d518

Please sign in to comment.