T
TanStack8mo ago
dependent-tan

Can we use tss' server function in useActionState?

If yes, should it be in useServerFn and pass the result to the useActionState or the ServerFn can already be passed in the useActionState?
1 Reply
dependent-tan
dependent-tanOP8mo ago
I tried it know. Just wrap the serverFn with a signature of the first parameter of useActionState.

Did you find this page helpful?