1 min read 35 words Updated Sep 24, 2026 Created Sep 24, 2026
import { cache } from "react"

Can be used to wrap function calls like "getCurrentUser" which happen multiple times per request. This cache is set per request and used to avoid multiple c