Skip to content

Commit

Permalink
docs: update /Layout (#1689)
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Aug 29, 2024
1 parent fd91c72 commit 0a98c88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/pages/Layout/+Page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ pages/admin-panel/users/+Page.js # URL: /admin-panel/users
> Setting a default `<Layout>` that is overridable isn't currently supported, see [#1692 - Add `override` and `default` options for cumulative configs](https://github.com/vikejs/vike/issues/1692).
## Nested Layouts

## Nested Layouts

You can define layouts that nest into each other:

Expand Down Expand Up @@ -118,7 +118,9 @@ Make sure to use <Link href="/clientRouting#settings">`<a href="/product/42/revi

> If your nested layout isn't associated with a URL then you can use a stateful component instead of `<Layout>`. (If the pricing and reviews tabs share the same URL `/product/42`.)
> Caching the data of the outer layout is work-in-progress, see [#1689 - [Nested Layouts] Fetch data on layout-level](https://github.com/vikejs/vike/issues/1689).
> To fetch data for your layouts see:
> - <Link href="/data-fetching#tools" />
> - [#1833 - Make `+data` and `+onBeforeRender` cumulative](https://github.com/vikejs/vike/issues/1833)
Examples:
- [React](https://github.com/vikejs/vike-react/blob/main/examples/full/pages/starship)
Expand Down
2 changes: 2 additions & 0 deletions docs/pages/data-fetching/+Page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ Some data-fetching tools have Vike extensions that enable your components to fet
- [`vike-react-query`](https://github.com/vikejs/vike-react/tree/main/packages/vike-react-query#readme) - [TanStack Query](https://tanstack.com/query) integration for <Link href="/vike-react">`vike-react`</Link>
- 🚧 `vike-react-telefunc` - [Telefunc](https://telefunc.com/) integration for <Link href="/vike-react">`vike-react`</Link>

> These extensions enable any of your components, including your <Link href="/Layout">`<Layout>` components</Link>, to fetch data.

## Data mutation & subsequent data

Expand Down

0 comments on commit 0a98c88

Please sign in to comment.