Fix missing dependency in snow callback (#2270)
This commit is contained in:
parent
c81043efa8
commit
17aada6dbc
@ -21,7 +21,7 @@ export const SnowProvider = ({ children }) => {
|
||||
}
|
||||
setStartIndex(i % MAX_FLAKES)
|
||||
setFlakes(newFlakes)
|
||||
}, [setFlakes, startIndex])
|
||||
}, [flakes, startIndex])
|
||||
|
||||
return (
|
||||
<SnowContext.Provider value={snow}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user