Skip to content

Commit

Permalink
Merge branch 'canary' into refactor/cleanup-app-render
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Oct 7, 2023
2 parents 35b2a7b + 06ee9d7 commit 379a253
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export const getItem = cache(async (id) => {

Although the `getItem` function is called twice, only one query will be made to the database.

```tsx filename="app/item/layout.tsx" switcher
```tsx filename="app/item/[id]/layout.tsx" switcher
import { getItem } from '@/utils/get-item'

export default async function Layout({
Expand All @@ -323,7 +323,7 @@ export default async function Layout({
}
```

```jsx filename="app/item/layout.js" switcher
```jsx filename="app/item/[id]/layout.js" switcher
import { getItem } from '@/utils/get-item'

export default async function Layout({ params: { id } }) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Then, on the client:

> **What is hydration?**
>
> Hydration is process of attaching event listeners to the DOM, to make the static HTML interactive. Behind the scenes, hydration is done with the [`hydrateRoot`](https://react.dev/reference/react-dom/client/hydrateRoot) React API.
> Hydration is the process of attaching event listeners to the DOM, to make the static HTML interactive. Behind the scenes, hydration is done with the [`hydrateRoot`](https://react.dev/reference/react-dom/client/hydrateRoot) React API.
### Subsequent Navigations

Expand Down

0 comments on commit 379a253

Please sign in to comment.