Skip to content

SPA Mode should not use Single Fetch revalidation behavior #12740

Closed
@brophdawg11

Description

@brophdawg11

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions