Closed
Description
The Single Fetch revalidation behavior (de-optimization) is incorrectly being applied when in SPA mode and there is no "single fetch" to the server. SPA Mode should receive the default revalidation behavior optimizations where parent routes do not revalidate on GET navigations by default (unless path params or search params change)
I'm using React Router as a...
framework
Reproduction
- Create an app in SPA mode (
ssr: false
) suing nested routes with loaders. - Route from one child route to another (
/parent/a -> /parent/b
)
Expected Behavior
The parent loader should not re-run by default
Actual Behavior
The parent loader should re-runs by default