@@ -22,7 +22,7 @@ export function logV6DeprecationWarnings(
22
22
renderFuture : Partial < RenderFutureConfig > | undefined ,
23
23
routerFuture ?: Omit < RouterFutureConfig , "v7_prependBasename" >
24
24
) {
25
- if ( ! renderFuture ?. v7_startTransition ) {
25
+ if ( renderFuture ?. v7_startTransition === undefined ) {
26
26
logDeprecation (
27
27
"v7_startTransition" ,
28
28
"React Router will begin wrapping state updates in `React.startTransition` in v7" ,
@@ -31,7 +31,7 @@ export function logV6DeprecationWarnings(
31
31
}
32
32
33
33
if (
34
- ! renderFuture ?. v7_relativeSplatPath &&
34
+ renderFuture ?. v7_relativeSplatPath === undefined &&
35
35
( ! routerFuture || ! routerFuture . v7_relativeSplatPath )
36
36
) {
37
37
logDeprecation (
@@ -42,31 +42,31 @@ export function logV6DeprecationWarnings(
42
42
}
43
43
44
44
if ( routerFuture ) {
45
- if ( ! routerFuture . v7_fetcherPersist ) {
45
+ if ( routerFuture . v7_fetcherPersist === undefined ) {
46
46
logDeprecation (
47
47
"v7_fetcherPersist" ,
48
48
"The persistence behavior of fetchers is changing in v7" ,
49
49
"https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"
50
50
) ;
51
51
}
52
52
53
- if ( ! routerFuture . v7_normalizeFormMethod ) {
53
+ if ( routerFuture . v7_normalizeFormMethod === undefined ) {
54
54
logDeprecation (
55
55
"v7_normalizeFormMethod" ,
56
56
"Casing of `formMethod` fields is being normalized to uppercase in v7" ,
57
57
"https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"
58
58
) ;
59
59
}
60
60
61
- if ( ! routerFuture . v7_partialHydration ) {
61
+ if ( routerFuture . v7_partialHydration === undefined ) {
62
62
logDeprecation (
63
63
"v7_partialHydration" ,
64
64
"`RouterProvider` hydration behavior is changing in v7" ,
65
65
"https://reactrouter.com/v6/upgrading/future#v7_partialhydration"
66
66
) ;
67
67
}
68
68
69
- if ( ! routerFuture . v7_skipActionErrorRevalidation ) {
69
+ if ( routerFuture . v7_skipActionErrorRevalidation === undefined ) {
70
70
logDeprecation (
71
71
"v7_skipActionErrorRevalidation" ,
72
72
"The revalidation behavior after 4xx/5xx `action` responses is changing in v7" ,
0 commit comments