Skip to content

Commit

Permalink
Export BlitzProvider from blitz-next (#3513)
Browse files Browse the repository at this point in the history
Co-authored-by: Aleksandra <[email protected]>
  • Loading branch information
Dillon Raphael and beerose authored Jul 7, 2022
1 parent b0d2505 commit a7e37c5
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 19 deletions.
5 changes: 5 additions & 0 deletions .changeset/nice-deers-dream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@blitzjs/next": patch
---

Export BlitzProvider from @blitzjs/next
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions packages/blitz-next/src/index-browser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ export type BlitzLayout<P = {}> = React.ComponentType<P> & {
export type AppProps<P = {}> = AppPropsType<Router, P> & {
Component: BlitzPage
}
const BlitzProvider = ({
client,
export const BlitzProvider = ({
client = globalThis.queryClient,
contextSharing = false,
dehydratedState,
hydrateOptions,
children,
}: BlitzProviderProps) => {
if (globalThis.queryClient) {
if (client) {
return (
<QueryClientProvider
client={client || globalThis.queryClient}
Expand Down
30 changes: 15 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a7e37c5

Please sign in to comment.