Skip to content

Commit 17aada6

Browse files
authored
Fix missing dependency in snow callback (#2270)
1 parent c81043e commit 17aada6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/animation/snow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const SnowProvider = ({ children }) => {
2121
}
2222
setStartIndex(i % MAX_FLAKES)
2323
setFlakes(newFlakes)
24-
}, [setFlakes, startIndex])
24+
}, [flakes, startIndex])
2525

2626
return (
2727
<SnowContext.Provider value={snow}>

0 commit comments

Comments
 (0)