fix: use providers

This commit is contained in:
TrèsAbhi committed 2024-07-09 14:45:29 -05:00
1 parent 84bbb05d43
commit 3a31191d9a
3 files changed
+13 -1

No files matched your search

+9 -1
View File
@@ -1,5 +1,13 @@
import * as TankopediaEphemeral from '../../../stores/tankopediaEphemeral';
import * as TankopediaPersistent from '../../../stores/tankopediaPersistent';
import * as TankopediaSort from '../../../stores/tankopediaSort'; import * as TankopediaSort from '../../../stores/tankopediaSort';
export default function Layout({ children }: { children: React.ReactNode }) { export default function Layout({ children }: { children: React.ReactNode }) {
return <TankopediaSort.Provider>{children}</TankopediaSort.Provider>; return (
<TankopediaPersistent.Provider>
<TankopediaEphemeral.Provider>
<TankopediaSort.Provider>{children}</TankopediaSort.Provider>
</TankopediaEphemeral.Provider>
</TankopediaPersistent.Provider>
);
} }
+2
View File
@@ -1,3 +1,5 @@
'use client';
import { Vector3 } from 'three'; import { Vector3 } from 'three';
import { create } from 'zustand'; import { create } from 'zustand';
import { subscribeWithSelector } from 'zustand/middleware'; import { subscribeWithSelector } from 'zustand/middleware';
+2
View File
@@ -1,3 +1,5 @@
'use client';
import { merge } from 'lodash'; import { merge } from 'lodash';
import { create } from 'zustand'; import { create } from 'zustand';
import { persist, subscribeWithSelector } from 'zustand/middleware'; import { persist, subscribeWithSelector } from 'zustand/middleware';