useFormState error with vitest/jsdom
Unanswered
Cape lion posted this in #help-forum
Cape lionOP
When running the nextjs server useFormState works as expected. When running in jsdom I get the error
If I do
I get
TypeError: useFormState is not a function or its return value is not iterableIf I do
import { useFormState } from "react-dom";
...
console.log({useFormState});I get
{useFormState: undefined}