React 19 useFormState replaced by useActionState
Deterministic patch indexed for AI coding agents (Cursor, Claude Code, Cline, Windsurf, OpenDevin).
Root Cause: useFormState moved to react and renamed to useActionState.
react fix --latest
Deterministic patch indexed for AI coding agents (Cursor, Claude Code, Cline, Windsurf, OpenDevin).
- import { useFormState } from 'react-dom';
+ import { useActionState } from 'react';
- const [state, action] = useFormState(fn, init);
+ const [state, action, isPending] = useActionState(fn, init);
curl -X POST https://agentnow.in/api/v1/query \
-H "Content-Type: application/json" \
-d '{"error": "React 19 useFormState replaced by useActionState"}'