Skip to content

Conversation

@dadamssg
Copy link
Contributor

@dadamssg dadamssg commented Nov 13, 2025

This adds callsite revalidation optout as brought up here: #10006

<Form method='post' shouldRevalidate={false}>
fetcher.submit(target, {
  method: 'post',
  shouldRevalidate: () => false
}

If this new value evaluates to false, it will skip calling the currently matched route's shouldRevalidate functions entirely, superseding and short-circuiting them.


Rough edge:

<Form method="get" shouldRevalidate={false} >

shouldRevalidate has no effect in the case of GET's.

@changeset-bot
Copy link

changeset-bot bot commented Nov 13, 2025

⚠️ No Changeset found

Latest commit: 62e3f8f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dadamssg dadamssg force-pushed the callsite-revalidation-optout branch from 23aff25 to 3ee7f30 Compare November 13, 2025 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants