mirror of
https://github.com/remvze/moodist.git
synced 2025-12-20 10:24:14 +00:00
15 lines
301 B
TypeScript
15 lines
301 B
TypeScript
import { useEffect } from 'react';
|
|
|
|
import { useSoundStore } from '@/store';
|
|
|
|
interface StoreConsumerProps {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export function StoreConsumer({ children }: StoreConsumerProps) {
|
|
useEffect(() => {
|
|
useSoundStore.persist.rehydrate();
|
|
});
|
|
|
|
return <>{children}</>;
|
|
}
|