Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

React 19 form and useActionState support #4517

Open
Open
React 19 form and useActionState support#4517

Description

Feature Request

Problem description

I'm updating an existing app using react-hook-form to React 19 and looking at the new form handling features.

Here is the example in the React docs: https://react.dev/reference/react/useActionState#using-information-returned-by-a-form-action.

Because action is not supported on SUIR Form, the I'm using the following workaround:

const [error, asyncSubmit, is_pending] = useActionState(submitLogin, null)

return (


label="Email"
name="email"
/>
...

Proposed solution

Perhaps it's as simple as allowing action on Form and passing down to the rendered form element, or perhaps this warrants looking at "in the round", I'm not sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions