Skip to content

Prefetch on Links not reloaded when an Action is performedΒ #12972

@michaelwhelehan

Description

@michaelwhelehan

I'm using React Router as a...

framework

Reproduction

  1. Have a link that goes to another route with the same parent component (template). with eg. prefetch="render"
  2. On the page with the link submit a form which should change the parent component UI after reloaded
  3. Click link that goes to the other route with same parent UI -> UI is still the old version (expect this to also be re-prefetched)

System Info

Since Remix merge

Used Package Manager

npm

Expected Behavior

Parent component UI should be reloaded too after a form submission/action if was prefetched with stale data

Actual Behavior

Parent component UI is stuck on old data if it was prefetched before a form submission which changed it after

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions