@@ -22,7 +22,7 @@ export function logV6DeprecationWarnings(
2222 renderFuture : Partial < RenderFutureConfig > | undefined ,
2323 routerFuture ?: Omit < RouterFutureConfig , "v7_prependBasename" >
2424) {
25- if ( ! renderFuture ?. v7_startTransition ) {
25+ if ( renderFuture ?. v7_startTransition === undefined ) {
2626 logDeprecation (
2727 "v7_startTransition" ,
2828 "React Router will begin wrapping state updates in `React.startTransition` in v7" ,
@@ -31,7 +31,7 @@ export function logV6DeprecationWarnings(
3131 }
3232
3333 if (
34- ! renderFuture ?. v7_relativeSplatPath &&
34+ renderFuture ?. v7_relativeSplatPath === undefined &&
3535 ( ! routerFuture || ! routerFuture . v7_relativeSplatPath )
3636 ) {
3737 logDeprecation (
@@ -42,31 +42,31 @@ export function logV6DeprecationWarnings(
4242 }
4343
4444 if ( routerFuture ) {
45- if ( ! routerFuture . v7_fetcherPersist ) {
45+ if ( routerFuture . v7_fetcherPersist === undefined ) {
4646 logDeprecation (
4747 "v7_fetcherPersist" ,
4848 "The persistence behavior of fetchers is changing in v7" ,
4949 "https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"
5050 ) ;
5151 }
5252
53- if ( ! routerFuture . v7_normalizeFormMethod ) {
53+ if ( routerFuture . v7_normalizeFormMethod === undefined ) {
5454 logDeprecation (
5555 "v7_normalizeFormMethod" ,
5656 "Casing of `formMethod` fields is being normalized to uppercase in v7" ,
5757 "https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"
5858 ) ;
5959 }
6060
61- if ( ! routerFuture . v7_partialHydration ) {
61+ if ( routerFuture . v7_partialHydration === undefined ) {
6262 logDeprecation (
6363 "v7_partialHydration" ,
6464 "`RouterProvider` hydration behavior is changing in v7" ,
6565 "https://reactrouter.com/v6/upgrading/future#v7_partialhydration"
6666 ) ;
6767 }
6868
69- if ( ! routerFuture . v7_skipActionErrorRevalidation ) {
69+ if ( routerFuture . v7_skipActionErrorRevalidation === undefined ) {
7070 logDeprecation (
7171 "v7_skipActionErrorRevalidation" ,
7272 "The revalidation behavior after 4xx/5xx `action` responses is changing in v7" ,
0 commit comments