Fix missing dependency in snow callback (#2270)

This commit is contained in:
ekzyis 2025-07-07 22:18:15 +02:00 committed by GitHub
parent c81043efa8
commit 17aada6dbc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,7 +21,7 @@ export const SnowProvider = ({ children }) => {
} }
setStartIndex(i % MAX_FLAKES) setStartIndex(i % MAX_FLAKES)
setFlakes(newFlakes) setFlakes(newFlakes)
}, [setFlakes, startIndex]) }, [flakes, startIndex])
return ( return (
<SnowContext.Provider value={snow}> <SnowContext.Provider value={snow}>