Skip to content

Commit b390745

Browse files
authored
docs: remove unused imports (#75653)
1 parent 2efcf11 commit b390745

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

docs/01-app/04-api-reference/01-directives/use-cache.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ To prerender an entire route, add `use cache` to the top **both** the `layout` a
8888

8989
```tsx filename="app/layout.tsx" switcher
9090
'use cache'
91-
import { unstable_cacheLife as cacheLife } from 'next/cache'
9291

9392
export default function Layout({ children }: { children: ReactNode }) {
9493
return <div>{children}</div>
@@ -97,7 +96,6 @@ export default function Layout({ children }: { children: ReactNode }) {
9796

9897
```jsx filename="app/page.tsx" switcher
9998
'use cache'
100-
import { unstable_cacheLife as cacheLife } from 'next/cache'
10199

102100
export default function Layout({ children }) {
103101
return <div>{children}</div>
@@ -108,7 +106,6 @@ Any components imported and nested in `page` file will inherit the cache behavio
108106

109107
```tsx filename="app/page.tsx" switcher
110108
'use cache'
111-
import { unstable_cacheLife as cacheLife } from 'next/cache'
112109

113110
async function Users() {
114111
const users = await fetch('/api/users')
@@ -126,7 +123,6 @@ export default function Page() {
126123

127124
```jsx filename="app/page.js" switcher
128125
'use cache'
129-
import { unstable_cacheLife as cacheLife } from 'next/cache'
130126

131127
async function Users() {
132128
const users = await fetch('/api/users')

0 commit comments

Comments
 (0)