Skip to content

[Bug]: When submitting a <Form>, the state overwrites to null #10629

@josh-sanger

Description

@josh-sanger

What version of React Router are you using?

Lastest

Steps to Reproduce

  1. Save some state to location.state
  2. Submit a <Form>
  3. Log the location.state after action returns;

Expected Behavior

It would be great it would could pass in the current state or new state via <Form state> (like the <Link> component)

Actual Behavior

There is no ability to send state with a <Form> navigation and it automatically resets to null

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions