rsnext/test
Zack Tanner fd4466e8d1
fix root page revalidation when redirecting in a server action (#64730)
When a server action triggers a redirect, we're incorrectly applying a
refresh marker to the segment they were on, rather than the segment they
were being redirected to. As a result, when revalidation occurs (via
`revalidateX` or `router.refresh()`), the top-level segment would be
replaced with data for an incorrect segment.

For example, if triggering a redirect action from `/redirect` to `/`,
the router state tree would save a reference to `/redirect`. The next
time a refresh or revalidate happens, it'd refresh the segment data for
`/redirect` instead of `/`.

Fixes #64728


Closes NEXT-3156
2024-04-18 19:32:35 +00:00
..
.stats-app chore: Update pnpm v8.15.1 to v8.15.7 (#64479) 2024-04-15 14:54:28 +00:00
development Upgrade typescript to 5.3 (#64043) 2024-04-17 18:35:29 +02:00
e2e fix root page revalidation when redirecting in a server action (#64730) 2024-04-18 19:32:35 +00:00
examples feat(cli): introduce --tailwind flag (#46927) 2023-03-16 16:06:27 +01:00
integration Improve top level await coverage (#64508) 2024-04-17 17:44:40 +02:00
lib Fix next-swc native binary write in tests (#64744) 2024-04-18 11:43:51 -07:00
production Fix: resolve mixed re-exports module as cjs (#64681) 2024-04-18 01:06:29 +02:00
unit Upgrade typescript to 5.3 (#64043) 2024-04-17 18:35:29 +02:00
.gitignore ci(workflow): enable test trace upload (#51107) 2023-06-12 17:14:13 +00:00
build-turbopack-build-tests-manifest.js Ensure production integration test results are uploaded (#63706) 2024-03-26 10:41:16 +01:00
build-turbopack-dev-tests-manifest.js Rename turbopack-tests-manifest to turbopack-dev-tests-manifest (#63409) 2024-03-19 10:26:14 +01:00
build-turbopack-tests-manifest.d.ts Update Turbopack test manifest from GitHub Actions artifact (#58394) 2023-11-24 16:48:12 +01:00
get-test-filter.js run tests from test suite that are not listed in the manifest (#58401) 2024-01-11 07:38:35 +00:00
jest-setup-after-env.ts Decrease default test timeouts (#56116) 2023-09-27 23:55:20 +00:00
ppr-tests-manifest.json add experimental client router cache config (#62856) 2024-04-02 05:42:18 -07:00
readme.md
related-tests-manifest.json Revert "chore(test): run related E2E deploy tests on PRs" (#64682) 2024-04-17 22:40:21 +00:00
test-file.txt
turbopack-build-tests-manifest.json Revert "fix(next): global not-found not working on multi-root layouts" (#64601) 2024-04-17 11:19:18 +02:00
turbopack-dev-examples-manifest.json Fix last examples for Turbopack (#64020) 2024-04-03 16:02:52 +02:00
turbopack-dev-tests-manifest.json Update Turbopack development test manifest (#64709) 2024-04-18 10:59:50 +02:00

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