useTransition typescript error
I have a server action that looks like this:
I am importing this in a client component and calling it using the useTransition hook like this:
However im getting this ts error: Type 'Promise<void>' is not assignable to type 'VoidOrUndefinedOnly'
0 Replies