diff --git a/.changeset/nice-deers-dream.md b/.changeset/nice-deers-dream.md new file mode 100644 index 0000000000..ba9ee3a49f --- /dev/null +++ b/.changeset/nice-deers-dream.md @@ -0,0 +1,5 @@ +--- +"@blitzjs/next": patch +--- + +Export BlitzProvider from @blitzjs/next diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7263502f74..154aa21d5a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,5 +1,5 @@ # https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners -* @beerose @dillonraphael +* @flybayer @beerose @dillonraphael packages/generator/templates**/* @flybayer diff --git a/packages/blitz-next/src/index-browser.tsx b/packages/blitz-next/src/index-browser.tsx index af57e54f48..f88d482fd6 100644 --- a/packages/blitz-next/src/index-browser.tsx +++ b/packages/blitz-next/src/index-browser.tsx @@ -85,14 +85,14 @@ export type BlitzLayout

= React.ComponentType

& { export type AppProps

= AppPropsType & { Component: BlitzPage } -const BlitzProvider = ({ - client, +export const BlitzProvider = ({ + client = globalThis.queryClient, contextSharing = false, dehydratedState, hydrateOptions, children, }: BlitzProviderProps) => { - if (globalThis.queryClient) { + if (client) { return (