Unverified Commit bf9c65f8 authored by Noam Honig's avatar Noam Honig Committed by GitHub

docs: fix force-dynamic example (#53521)

fixed force dynamic example
Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent f08d42d5
......@@ -241,11 +241,11 @@ View all the available `cache` options in the [`fetch` API reference](/docs/app/
If you have multiple `fetch` requests in a route segment (e.g. a Layout or Page), you can configure the caching behavior of all data requests in the segment using the [Segment Config Options](/docs/app/api-reference/file-conventions/route-segment-config).
For example, using `const dynamic = 'force-dynamic` will cause all data to be fetched at request time, and the segment to be rendered dynamically.
For example, using `const dynamic = 'force-dynamic'` will cause all data to be fetched at request time, and the segment to be rendered dynamically.
```js filename="layout.js / page.js"
// Add
export const dynamic = 'auto'
export const dynamic = 'force-dynamic'
```
There's an extensive list of Segment Config options, giving you fine-grained control of static and dynamic behavior of a route segment. See the [API reference](/docs/app/api-reference/file-conventions/route-segment-config) for more.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment