fully migrate to swr, remove react-query

This commit is contained in:
Ren Amamiya
2023-06-06 11:44:03 +07:00
parent d0b1353bdf
commit 1b56684cf5
7 changed files with 75 additions and 170 deletions

View File

@@ -1,5 +1,6 @@
import { MultiAccounts } from "@shared/multiAccounts";
import { Navigation } from "@shared/navigation";
import { SWRConfig } from "swr";
export function LayoutSpace({ children }: { children: React.ReactNode }) {
return (
@@ -8,7 +9,9 @@ export function LayoutSpace({ children }: { children: React.ReactNode }) {
<MultiAccounts />
<Navigation />
</div>
<div className="w-full h-full">{children}</div>
<div className="w-full h-full">
<SWRConfig value={{ provider: () => new Map() }}>{children}</SWRConfig>
</div>
</div>
);
}