Skip to content

Commit 823437f

Browse files
authored
fix: reset mounted flag when component destroyed (#24)
1 parent 981f60c commit 823437f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/hooks/useStatus.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ export default function useStatus(
221221

222222
useEffect(
223223
() => () => {
224+
mountedRef.current = false;
224225
clearTimeout(deadlineRef.current);
225226
},
226227
[],

0 commit comments

Comments
 (0)