refactoring: upgrade nextjs; api => server actions
This commit is contained in:
1 parent
447be7d021
commit
03cfacf91c
45 files changed
+1034
-923
No files matched your search
+2
-5
@@ -3,7 +3,6 @@
|
||||
import { ReactNode, useState } from 'react';
|
||||
import ModalContainer from 'react-modal-promise';
|
||||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
||||
import { ReactQueryStreamedHydration } from '@tanstack/react-query-next-experimental';
|
||||
|
||||
import ThemeProvider from '@/providers/Theme';
|
||||
|
||||
@@ -21,10 +20,8 @@ const Providers = ({ children, theme }: { children: ReactNode; theme?: Theme })
|
||||
);
|
||||
return (
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<ReactQueryStreamedHydration>
|
||||
<ThemeProvider theme={theme}>{children}</ThemeProvider>
|
||||
<ModalContainer />
|
||||
</ReactQueryStreamedHydration>
|
||||
<ThemeProvider theme={theme}>{children}</ThemeProvider>
|
||||
<ModalContainer />
|
||||
</QueryClientProvider>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user