#15547·react-router

Layout content disappears when fetcher revalidation overlaps a redirected navigation

Author: lukebowermanCreated Sep 24, 2026Updated Sep 28, 2026
Labelsbugpkg:react-router

Reproduction

A concurrent fetcher reload can remove loader data that a redirected navigation intends to reuse, leaving the destination's layout and child content missing.

Reproduction-only PR: https://github.com/remix-run/react-router/pull/15546

Fork branch: https://github.com/lukebowerman/react-router/tree/luke/report-fetcher-loader-data

This is an isolated Framework Mode integration fixture in integration/bug-report-test.ts, using the repository's bug-report test setup. It contains no production-code changes or fix. It was reduced from investigation of overlapping fetcher submissions and redirected navigation, then verified on unpatched upstream main at 2d9827bc09bc562647553f8abf026823e3bfd9dd.

Run:

bash
git clone --branch luke/report-fetcher-loader-data https://github.com/lukebowerman/react-router.git
cd react-router
pnpm install
pnpm build
pnpm exec playwright install chromium
pnpm playwright:integration bug-report --project chromium --workers=1 --retries=0 --reporter=list

The test controls the request ordering without timing delays:

  1. Start at /layout/start, with layout loader data rendered and the layout's shouldRevalidate returning false.
  2. Submit a fetcher form to /mutate, then a navigation form to /save.
  3. Complete the fetcher action so its background reload begins while navigation is still submitting to /save.
  4. Complete the save action, which redirects to /layout/next. Confirm its loader request skips the layout loader and reuses existing layout data.
  5. Complete the background reload first, then the navigation's loader request.
  6. Wait for navigation to become idle at /layout/next, then assert that Layout data and Child next are visible.

All three local Chromium runs failed at the missing Layout data assertion. The test's failure snapshots also show that the child content is absent. Integration type checking, scoped ESLint, and formatting pass. A proposed one-line fix is separate: https://github.com/remix-run/react-router/pull/15545.

System Info

bash
Tested in Framework Mode against the upstream source commit above (workspace `react-router` package version: `8.4.0`), using the default Vite 7 integration fixture and Playwright `1.60.0` with its bundled Chromium. This reproduction verifies that source checkout, not every released version.

Output of the template's envinfo command (run through `pnpm dlx`):


System:
    OS: macOS 26.6.2
    CPU: (18) arm64 Apple M5 Max
    Memory: 12.00 GB / 128.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 24.16.0 - /Users/luke/.nvm/versions/node/v24.16.0/bin/node
    npm: 11.13.0 - /Users/luke/.nvm/versions/node/v24.16.0/bin/npm
    pnpm: 11.7.0 - /Users/luke/.nvm/versions/node/v24.16.0/bin/pnpm
    bun: 1.3.14 - /Users/luke/.bun/bin/bun
  Browsers:
    Chrome: 153.0.8010.53
    Firefox: 151.0
    Safari: 27.0
  npmPackages:
    vite: ^7.0.0 => 7.3.1

Used Package Manager

pnpm

Expected Behavior

After navigation becomes idle at /layout/next, the layout's existing loader data remains available and the page renders both Layout data and Child next. A successful background fetcher reload should preserve data for the currently rendered routes when navigation has selected that data for reuse.

Actual Behavior

The URL reaches /layout/next and navigation becomes idle, but the layout and child content are missing. The background reload merges against the pending /save route tree and drops the layout data; the redirected navigation has already skipped that loader, so it finishes without replacing the missing data.