Next.js Discord

Discord Forum

useFormState throws error without error message

Unanswered
Masai Lion posted this in #help-forum
Open in Discord
Masai LionOP
Hello everyone; I don't know if this is a nextjs issue or there's something i'm not doing right. Whenever i have more than 3 parallel routes in a route, everything works fine with soft navigation, but when i refresh, useFormState stop triggering and throw error without error message.

Please i need help, i have been on this for the past 2days.

2 Replies

Masai LionOP
I have been trying to reproduce this on codesandbox to no avail. Maybe it happens only on local environment.

https://codesandbox.io/p/devbox/useformstate-issue-dmmnnz?file=%2Fapp%2F%28authenticated%29%2F%28app-layout%29%2Fdashboard%2Flayout.tsx%3A26%2C3
Thanks @joulev