Open
Description
Reproduction
- Go to https://stackblitz.com/edit/remix-run-remix-cdudmh?file=app%2Froutes%2F_index.tsx
- Fill input text beside the Fetcher text
- Fill input text beside the Form text
- Edit the code, for example change the text
- 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