-
SummaryI saw in the documentation that use cache can be used for non-async methods, but when I added it, it gave an error immediately. So, in reality, can use cache only be used with async functions? doc: https://nextjs.org/docs/app/api-reference/directives/use-cache will result Additional informationOperating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 24.4.0: Fri Apr 11 18:33:46 PDT 2025; root:xnu-11417.101.15~117/RELEASE_ARM64_T8112
Available memory (MB): 16384
Available CPU cores: 8
Binaries:
Node: 22.20.0
npm: 10.9.3
Yarn: N/A
pnpm: 10.18.3
Relevant Packages:
next: 16.0.0 // Latest available version is detected (16.0.0).
eslint-config-next: N/A
react: 19.2.0
react-dom: 19.2.0
typescript: 5.8.2
Next.js Config:
output: standaloneExampleNo response |
Beta Was this translation helpful? Give feedback.
Answered by
icyJoseph
Oct 28, 2025
Replies: 1 comment
-
|
Yes they have to async functions. Fixing that entry right now. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
fairjm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Yes they have to async functions. Fixing that entry right now.