rsnext/test
Zack Tanner c013e98fa4
fix: server actions firing twice after navigation (#54948)
The original logic here was introduced to unblock client side navigations if a server action was in flight, however this introduced a bug where subsequent actions would fetch twice after navigation. 

This was happening because the promise handling was in the wrong spot: previously this would potentially cause both the `then` callback to fire while simultaneously the action reducer would handle the result. Moving it to where we're first checking if there's a pending navigation will more reliably indicate if the action was resolved after we discarded it in the reducer.

Closes NEXT-1589
Fixes #54746
2023-09-03 20:31:48 +00:00
..
.stats-app fix: minimum node version 16.14.0 (#54331) 2023-08-22 08:58:53 +00:00
__mocks__ [edge] bump @edge-runtime/* package suite (#49092) 2023-05-31 08:03:20 +00:00
development Ensure that barrel files behind wildcards are transformed into shortpath (#54951) 2023-09-03 13:02:14 -07:00
e2e fix: server actions firing twice after navigation (#54948) 2023-09-03 20:31:48 +00:00
examples feat(cli): introduce --tailwind flag (#46927) 2023-03-16 16:06:27 +01:00
integration Update swc_core to v0.82.11 (#54653) 2023-09-01 15:35:04 +02:00
lib fix: improve error message when output: export in app router (#54202) 2023-08-21 14:45:00 +00:00
production Update tag handling for app cache (#53321) 2023-08-31 15:17:40 -07:00
unit Update tag handling for app cache (#53321) 2023-08-31 15:17:40 -07:00
.gitignore ci(workflow): enable test trace upload (#51107) 2023-06-12 17:14:13 +00:00
jest-setup-after-env.ts type check tests (and convert next-test-utils.js to ts) (#51071) 2023-06-23 17:42:50 +00:00
jest.d.ts refactor smooth scroll bailout logic in app navigations (#53186) 2023-07-27 14:39:51 +00:00
readme.md refactor: split up CONTRIBUTING.md (#40515) 2022-09-16 14:54:58 -07:00
test-file.txt
turbopack-tests-manifest.js Turbopack: add middleware support for next.rs api dev mode (#54555) 2023-08-27 12:10:15 +02:00

See Testing for more information on how you can run/write/debug tests for Next.js.