react/scripts/rollup
Sebastian Markbåge 59440424d0
Implement Navigation API backed default indicator for DOM renderer (#33162)
Stacked on #33160.

By default, if `onDefaultTransitionIndicator` is not overridden, this
will trigger a fake Navigation event using the Navigation API. This is
intercepted to create an on-going navigation until we complete the
Transition. Basically each default Transition is simulated as a
Navigation.

This triggers the native browser loading state (in Chrome at least). So
now by default the browser spinner spins during a Transition if no other
loading state is provided. Firefox and Safari hasn't shipped Navigation
API yet and even in the flag Safari has, it doesn't actually trigger the
native loading state.

To ensures that you can still use other Navigations concurrently, we
don't start our fake Navigation if there's one on-going already.
Similarly if our fake Navigation gets interrupted by another. We wait
for on-going ones to finish and then start a new fake one if we're
supposed to be still pending.

There might be other routers on the page that might listen to intercept
Navigation Events. Typically you'd expect them not to trigger a refetch
when navigating to the same state. However, if they want to detect this
we provide the `"react-transition"` string in the `info` field for this
purpose.
2025-05-13 16:00:38 -04:00
..
externs Replay Client Actions After Hydration (#26716) 2023-04-25 10:22:20 -04:00
plugins [Fizz] Share code between inline and external runtime (#33066) 2025-05-01 14:25:10 -04:00
shims Update React Native shims to use export syntax (#31426) 2024-11-07 14:53:44 +00:00
validate Implement Navigation API backed default indicator for DOM renderer (#33162) 2025-05-13 16:00:38 -04:00
build-all-release-channels.js [ci] Cleanup --ci flag 2024-07-29 19:18:03 -04:00
build.js [Fizz] Share code between inline and external runtime (#33066) 2025-05-01 14:25:10 -04:00
bundles.js feat(eslint-plugin-react-hooks): merge rule from eslint-plugin-react-compiler into react-hooks plugin (#32416) 2025-03-12 21:43:06 -04:00
forks.js [flags] remove enableRemoveConsolePatches (#32425) 2025-02-24 10:00:22 -05:00
generate-inline-fizz-runtime.js [Fizz] Batch Suspense Boundary Reveal with Throttle (#33076) 2025-05-01 16:09:37 -04:00
modules.js [Flight] Source Map Actions in Reference Node Loader Transforms (#30755) 2024-08-21 09:52:17 -04:00
packaging.js build: add support to the rollup build for building typescript packages (#32393) 2025-02-16 10:38:13 -05:00
stats.js [ci] Cleanup --ci flag 2024-07-29 19:18:03 -04:00
sync.js Fork React Native renderer into FB and OSS bundles (#12625) 2018-04-18 13:16:50 -07:00
utils.js Fixed broken build script --unsafe-partial flag (#22324) 2021-09-15 13:32:09 -04:00
wrappers.js build: add support to the rollup build for building typescript packages (#32393) 2025-02-16 10:38:13 -05:00