Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remix stub doesn't transition through loading state after form submission #10226

Open
jabrks opened this issue Nov 13, 2024 · 0 comments
Open

Comments

@jabrks
Copy link

jabrks commented Nov 13, 2024

Reproduction

Visit https://stackblitz.com/edit/remix-run-remix-zgfwmo?file=app%2Ftests%2F_index.spec.tsx&view=editor and observe the failing test.

Compare that with the same code running in a real browser environment, which behaves as expected

System Info

System:
  OS: macOS 15.1
  CPU: (10) arm64 Apple M1 Pro
  Memory: 881.70 MB / 32.00 GB
  Shell: 5.9 - /bin/zsh
Binaries:
  Node: 20.17.0 - ~/.nvm/versions/node/v20.17.0/bin/node
  npm: 10.9.0 - ~/.nvm/versions/node/v20.17.0/bin/npm
  bun: 1.0.14 - ~/.bun/bin/bun
Browsers:
  Chrome: 130.0.6723.117
  Chrome Canary: 132.0.6797.0
  Safari: 18.1
npmPackages:
  @remix-run/dev: ^2.14.0 => 2.14.0 
  @remix-run/express: ^2.14.0 => 2.14.0 
  @remix-run/node: ^2.14.0 => 2.14.0 
  @remix-run/react: ^2.14.0 => 2.14.0 
  @remix-run/testing: ^2.14.0 => 2.14.0 
  vite: ^5.4.11 => 5.4.11

Used Package Manager

npm

Expected Behavior

The form submission should transition through these states

idle → submitting → loading → idle

Actual Behavior

The form submission does not transition through the loading state

idle → submitting → idle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant