Skip to content

[Feature]: "GET" forms with React Router #470

@QuentinWidlocher

Description

@QuentinWidlocher

What is the new or updated feature that you are suggesting?

Hi, is there already a way to use rvf with React Router and GET forms ?

Calling parseFormData from the loader obviously fails since the data has to be pulled from the search params instead of the form data.

Calling mySchema.safeParse is a workaround but it's hard to handle errors as cleanly and accurately as rvf does.

Is there something I missed ? If not, I think a way to validate forms in loader via parseSearchParams or something would be a great way to handle complex search forms.

Why should this feature be included?

The most obviously useful usecase I can think of is a complex search form, that needs to keep its state when refreshing the page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions