fix: rehydrate store only on mount

This commit is contained in:
MAZE 2023-11-23 17:09:22 +03:30
parent ed9a0271f7
commit 2c443d3f33

View File

@ -9,7 +9,7 @@ interface StoreConsumerProps {
export function StoreConsumer({ children }: StoreConsumerProps) {
useEffect(() => {
useSoundStore.persist.rehydrate();
});
}, []);
return <>{children}</>;
}