Skip to content

Commit

Permalink
fix: rehydrate store only on mount
Browse files Browse the repository at this point in the history
  • Loading branch information
remvze committed Nov 23, 2023
1 parent ed9a027 commit 2c443d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/store-consumer/store-consumer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface StoreConsumerProps {
export function StoreConsumer({ children }: StoreConsumerProps) {
useEffect(() => {
useSoundStore.persist.rehydrate();
});
}, []);

return <>{children}</>;
}

0 comments on commit 2c443d3

Please sign in to comment.