Skip to content

Commit 7793381

Browse files
Merge pull request #40 from s0h311/patch-1
blog: fixed uncorrect import statement in Next.js cache article
2 parents f5aa84f + c94236f commit 7793381

File tree

1 file changed

+1
-1
lines changed
  • src/pages/2024-01/next-js-app-router-cache

1 file changed

+1
-1
lines changed

src/pages/2024-01/next-js-app-router-cache/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ If we go back to our previous example of city guides, we might want to pull data
289289

290290
```jsx {4}
291291
import { getGuides } from "./data"
292-
import { cache as unstable_cache } from "next/cache"
292+
import { unstable_cache as cache } from "next/cache"
293293

294294
const getCachedGuides = cache(city => getGuides(city), ["guides-cache-key"])
295295

0 commit comments

Comments
 (0)