trying to fix protected route data fetch problem and only one more problem somewhere in the

This commit is contained in:
Arjun Patel
2022-02-09 16:07:04 -08:00
parent 067408f104
commit 2f79f769cc
7 changed files with 44 additions and 25 deletions
+8 -6
View File
@@ -26,13 +26,15 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout) {
const getLayout = Component.getLayout ?? ((page) => page);
return (
<RecoilRoot>
<SiteLayout>
<AuthProvider>{getLayout(<Component {...pageProps} />)}</AuthProvider>
<AuthProvider>
<RecoilRoot>
<SiteLayout>
{getLayout(<Component {...pageProps} />)}
<Toaster position="top-center" />
</SiteLayout>
</RecoilRoot>
<Toaster position="top-center" />
</SiteLayout>
</RecoilRoot>
</AuthProvider>
);
}