mirror of
https://github.com/remvze/moodist.git
synced 2025-12-17 08:54:13 +00:00
fix: rehydrate store only on mount
This commit is contained in:
parent
ed9a0271f7
commit
2c443d3f33
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ interface StoreConsumerProps {
|
||||||
export function StoreConsumer({ children }: StoreConsumerProps) {
|
export function StoreConsumer({ children }: StoreConsumerProps) {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
useSoundStore.persist.rehydrate();
|
useSoundStore.persist.rehydrate();
|
||||||
});
|
}, []);
|
||||||
|
|
||||||
return <>{children}</>;
|
return <>{children}</>;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue