portfolio-website icon indicating copy to clipboard operation
portfolio-website copied to clipboard

useFormStatus() is not a function

Open lautarosegura opened this issue 2 years ago • 3 comments

Hello, I am getting the following error: useFormStatus() is not a function

It comes from the submit button component. I can import useFormStatus() and TypeScript knows it's a function, but I can not execute it.

lautarosegura avatar Oct 25 '23 22:10 lautarosegura

Hey, were you guys able to resolve this issue? I was having the same problem.

Cborgg avatar Dec 14 '23 19:12 Cborgg

@ByteGrad same issue here.

flip-in avatar Dec 18 '23 10:12 flip-in

@Cborgg

try to import it like this

// @ts-ignore
import { experimental_useFormStatus as useFormStatus } from 'react-dom';

flip-in avatar Dec 18 '23 10:12 flip-in