Skip to content

HMR not works inside Fetcher Form #10088

Open
@xian13

Description

@xian13

Reproduction

  1. Go to https://stackblitz.com/edit/remix-run-remix-cdudmh?file=app%2Froutes%2F_index.tsx
  2. Fill input text beside the Fetcher text
  3. Fill input text beside the Form text
  4. Edit the code, for example change the text
  5. The text value inside Form is persisted while the text value inside Fetcher Form is reseted

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
  npmPackages:
    @remix-run/dev: * => 2.12.1 
    @remix-run/node: * => 2.12.1 
    @remix-run/react: * => 2.12.1 
    @remix-run/serve: * => 2.12.1 
    vite: ^5.1.0 => 5.4.8

Used Package Manager

npm

Expected Behavior

If HMR works the state should be persisted, in this case the value that filled in the text input should not reseted

Actual Behavior

The state is reset inside fetcher Form

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions