Unverified Commit b3907454 authored by Lee Robinson's avatar Lee Robinson Committed by GitHub

docs: remove unused imports (#75653)

parent 2efcf113
......@@ -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')
......
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