File size: 190 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use server'

import { unstable_expirePath } from 'next/cache'

let x = 0

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

export async function get() {
  return x
}