next.js/test/e2e/app-dir/resume-data-cache/app/actions.ts
actions.ts10 lines210 B
'use server'

import { refresh } from 'next/cache'

export async function refreshAction() {
  // Simulate some IO before calling refresh
  await new Promise((resolve) => setTimeout(resolve, 100))
  refresh()
}
Quest for Codev2.0.0
/
SIGN IN