Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
b3907454
Unverified
Commit
b3907454
authored
Feb 04, 2025
by
Lee Robinson
Committed by
GitHub
Feb 04, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: remove unused imports (#75653)
parent
2efcf113
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
use-cache.mdx
docs/01-app/04-api-reference/01-directives/use-cache.mdx
+0
-4
No files found.
docs/01-app/04-api-reference/01-directives/use-cache.mdx
View file @
b3907454
...
...
@@ -88,7 +88,6 @@ To prerender an entire route, add `use cache` to the top **both** the `layout` a
```tsx filename="app/layout.tsx" switcher
'use cache'
import { unstable_cacheLife as cacheLife } from 'next/cache'
export default function Layout({ children }: { children: ReactNode }) {
return <div>{children}</div>
...
...
@@ -97,7 +96,6 @@ export default function Layout({ children }: { children: ReactNode }) {
```jsx filename="app/page.tsx" switcher
'use cache'
import { unstable_cacheLife as cacheLife } from 'next/cache'
export default function Layout({ children }) {
return <div>{children}</div>
...
...
@@ -108,7 +106,6 @@ Any components imported and nested in `page` file will inherit the cache behavio
```tsx filename="app/page.tsx" switcher
'use cache'
import { unstable_cacheLife as cacheLife } from 'next/cache'
async function Users() {
const users = await fetch('/api/users')
...
...
@@ -126,7 +123,6 @@ export default function Page() {
```jsx filename="app/page.js" switcher
'use cache'
import { unstable_cacheLife as cacheLife } from 'next/cache'
async function Users() {
const users = await fetch('/api/users')
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment