mirror of
https://github.com/supabase/supabase.git
synced 2026-05-08 09:50:33 -04:00
44db2d3f16
Split guide layouts by section, so that nav data fetches can be pushed down to thesection where they're actually used. Limits blast radius of any data fetch problems, and also lets us push down client components in the future, since layouts now have context on the request path and we don't need a high-level usePathname.
6 lines
165 B
TypeScript
6 lines
165 B
TypeScript
import Layout from '~/layouts/guides'
|
|
|
|
export default async function ApiLayout({ children }: { children: React.ReactNode }) {
|
|
return <Layout>{children}</Layout>
|
|
}
|