mirror of https://github.com/buster-so/buster.git
Merge pull request #651 from buster-so/Jacob-attempted-chart-playground-fix
Jacob attempted chart playground fix
This commit is contained in:
commit
4707a87c16
|
@ -1,6 +1,16 @@
|
|||
import { BusterReactQueryProvider } from '@/context/BusterReactQuery/BusterReactQueryAndApi';
|
||||
import { SupabaseContextProvider } from '@/context/Supabase';
|
||||
import { getSupabaseUserContext } from '@/lib/supabase';
|
||||
import { QueryClient } from '@tanstack/react-query';
|
||||
|
||||
export default function Layout({ children }: { children: React.ReactNode }) {
|
||||
return <BusterReactQueryProvider>{children}</BusterReactQueryProvider>;
|
||||
export default async function Layout({ children }: { children: React.ReactNode }) {
|
||||
const supabaseContext = await getSupabaseUserContext();
|
||||
|
||||
return (
|
||||
<SupabaseContextProvider supabaseContext={supabaseContext}>
|
||||
<BusterReactQueryProvider>
|
||||
{children}
|
||||
</BusterReactQueryProvider>
|
||||
</SupabaseContextProvider>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue