mirror of
https://github.com/remvze/moodist.git
synced 2026-02-28 09:03:12 +08:00
fix: rehydrate store only on mount
This commit is contained in:
@@ -9,7 +9,7 @@ interface StoreConsumerProps {
|
||||
export function StoreConsumer({ children }: StoreConsumerProps) {
|
||||
useEffect(() => {
|
||||
useSoundStore.persist.rehydrate();
|
||||
});
|
||||
}, []);
|
||||
|
||||
return <>{children}</>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user