Unverified Commit 2caf1882 authored by Usman S. (Max Programming)'s avatar Usman S. (Max Programming) Committed by GitHub

Change file extension to .tsx (#59763)

Changes the file extension from `.ts` to `.tsx` in these 2 places


![image](https://github.com/vercel/next.js/assets/51731966/b91654cf-290c-4aa8-bf90-41e266bf0bc4)

---------
Co-authored-by: 's avatarDelba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
Co-authored-by: 's avatarMichael Novotny <manovotny@gmail.com>
parent 9d943729
...@@ -211,7 +211,7 @@ You can also use the experimental [`unstable_cache` API](/docs/app/api-reference ...@@ -211,7 +211,7 @@ You can also use the experimental [`unstable_cache` API](/docs/app/api-reference
In the example below: In the example below:
- The React `cache` function is used to [memoize](/docs/app/building-your-application/caching#request-memoization) data requests. - The React `cache` function is used to [memoize](/docs/app/building-your-application/caching#request-memoization) data requests.
- The `revalidate` option is set to `3600` in the `layout.ts` and `page.ts` segments, meaning the data will be cached and revalidated at most every hour. - The `revalidate` option is set to `3600` in the Layout and Page segments, meaning the data will be cached and revalidated at most every hour.
```ts filename="app/utils.ts" switcher ```ts filename="app/utils.ts" switcher
import { cache } from 'react' import { cache } from 'react'
......
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