Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhsuresh authored Oct 25, 2023
2 parents 1e2f63b + 68bb612 commit 2848e57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/pages/docs/usage-next-13.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ Add the new `use client` directive to the following files:
1. `src/blitz-client.(ts|js)`
2. All Files with usage of `useQuery`, `useInfiniteQuery`, `usePaginatedQuery`, `useMutation`, `Hydrate` and other React Query client side hooks.

#### Recommendations

- For Blitz apps that have their pages at `/src/pages` it is recommended to colocate the app directory at `/src/app`. However, a root `/app` App directory is also supported. More on the new NextJS file structure at ["Project Organization and File Colocation"](https://nextjs.org/docs/app/building-your-application/routing/colocation#src-directory).

#### BlitzProvider {#blitz-provider}

This provider should wrap the app and should be placed at the `(root)/layout.ts` file.
Expand Down

0 comments on commit 2848e57

Please sign in to comment.