next.js/test/e2e/app-dir/actions/app/shared/action.js
action.js15 lines180 B
'use server'

import { revalidatePath } from 'next/cache'

let x = 0

export async function inc() {
  ++x
  revalidatePath('/shared')
}

export async function get() {
  return x
}
Quest for Codev2.0.0
/
SIGN IN