Skip to content

Commit

Permalink
Add warning for skip action error revalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Jul 3, 2024
1 parent 4f19e52 commit 415612c
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions packages/react-router/lib/deprecations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,13 @@ export function logV6DeprecationWarnings(
);
}

// TODO: Uncomment once this stabilizes
// if (future?.unstable_skipActionErrorRevalidation) {
// logDeprecation(
// "unstable_skipActionErrorRevalidation",
// "The revalidation behavior after 4xx/5xx action responses is changing in v7",
// "https://reactrouter.com/en/v7/upgrading/future#v7_skipactionerrorrevalidation",
// );
// }
if (future?.v7_skipActionErrorRevalidation) {
logDeprecation(
"v7_skipActionErrorRevalidation",
"The revalidation behavior after 4xx/5xx action responses is changing in v7",
"https://reactrouter.com/en/v7/upgrading/future#v7_skipactionerrorrevalidation"
);
}

if (future?.v7_startTransition) {
logDeprecation(
Expand Down

0 comments on commit 415612c

Please sign in to comment.