Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -267,16 +267,16 @@
"pretty-ms": "7.0.0",
"random-seed": "0.3.0",
"react": "19.0.0",
"react-builtin": "npm:react@19.3.0-canary-fef12a01-20260413",
"react-builtin": "npm:react@19.3.0-canary-da9325b5-20260417",
"react-dom": "19.0.0",
"react-dom-builtin": "npm:react-dom@19.3.0-canary-fef12a01-20260413",
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-fef12a01-20260413",
"react-experimental-builtin": "npm:react@0.0.0-experimental-fef12a01-20260413",
"react-is-builtin": "npm:react-is@19.3.0-canary-fef12a01-20260413",
"react-server-dom-turbopack": "npm:react-server-dom-turbopack@19.3.0-canary-fef12a01-20260413",
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-fef12a01-20260413",
"react-server-dom-webpack": "npm:react-server-dom-webpack@19.3.0-canary-fef12a01-20260413",
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-fef12a01-20260413",
"react-dom-builtin": "npm:react-dom@19.3.0-canary-da9325b5-20260417",
"react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-da9325b5-20260417",
"react-experimental-builtin": "npm:react@0.0.0-experimental-da9325b5-20260417",
"react-is-builtin": "npm:react-is@19.3.0-canary-da9325b5-20260417",
"react-server-dom-turbopack": "npm:react-server-dom-turbopack@19.3.0-canary-da9325b5-20260417",
"react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-da9325b5-20260417",
"react-server-dom-webpack": "npm:react-server-dom-webpack@19.3.0-canary-da9325b5-20260417",
"react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-da9325b5-20260417",
"react-ssr-prepass": "1.0.8",
"react-virtualized": "9.22.3",
"relay-compiler": "13.0.2",
Expand All @@ -286,8 +286,8 @@
"resolve-from": "5.0.0",
"sass": "1.54.0",
"satori": "0.25.0",
"scheduler-builtin": "npm:scheduler@0.28.0-canary-fef12a01-20260413",
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-fef12a01-20260413",
"scheduler-builtin": "npm:scheduler@0.28.0-canary-da9325b5-20260417",
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-da9325b5-20260417",
"seedrandom": "3.0.5",
"semver": "7.3.7",
"serve-handler": "6.1.6",
Expand Down Expand Up @@ -331,10 +331,10 @@
"@types/react-dom": "19.2.3",
"@types/retry": "0.12.0",
"jest-snapshot": "30.0.0-alpha.6",
"react": "npm:react@19.3.0-canary-fef12a01-20260413",
"react-dom": "npm:react-dom@19.3.0-canary-fef12a01-20260413",
"react-is": "npm:react-is@19.3.0-canary-fef12a01-20260413",
"scheduler": "npm:scheduler@0.28.0-canary-fef12a01-20260413"
"react": "npm:react@19.3.0-canary-da9325b5-20260417",
"react-dom": "npm:react-dom@19.3.0-canary-da9325b5-20260417",
"react-is": "npm:react-is@19.3.0-canary-da9325b5-20260417",
"scheduler": "npm:scheduler@0.28.0-canary-da9325b5-20260417"
},
"packageExtensions": {
"eslint-plugin-react-hooks@0.0.0-experimental-6de32a5a-20250822": {
Expand Down
10 changes: 7 additions & 3 deletions packages/next/src/client/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ const prefetched = new Set<string>()
type PrefetchOptions = RouterPrefetchOptions & {
/**
* bypassPrefetchedCheck will bypass the check to see if the `href` has
* already been fetched.
* already been fetched i.e. unconditionally prefetch the `href`.
*/
bypassPrefetchedCheck?: boolean
bypassPrefetchedCheck: boolean
}

function prefetch(
Expand Down Expand Up @@ -576,7 +576,11 @@ const Link = React.forwardRef<HTMLAnchorElement, LinkPropsReal>(
}

// Prefetch the URL.
prefetch(router, href, as, { locale })
prefetch(router, href, as, {
// dedupe across appear/disappear of the Link.
bypassPrefetchedCheck: false,
Comment on lines +579 to +581
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a drive-by. This is just making implicit behavior explicit. I was concerned this was triggering too many prefetches.

locale,
})
}, [as, href, isVisible, locale, prefetchEnabled, router?.locale, router])

const childProps: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10655,7 +10655,7 @@
null !== current &&
restoreSuspendedTreeContext(workInProgress, current),
(workInProgress = mountActivityChildren(workInProgress, nextProps)),
(workInProgress.flags |= 4096);
(workInProgress.flags |= 134221824);
return workInProgress;
}
prevState = current.child;
Expand Down Expand Up @@ -11651,7 +11651,7 @@
workInProgress,
JSCompiler_object_inline_stack_3224.children
)),
(workInProgress.flags |= 4096));
(workInProgress.flags |= 134221824));
return workInProgress;
}
}
Expand Down Expand Up @@ -12312,7 +12312,7 @@
null === workInProgress
? ((returnFiber.deletions = [current]), (returnFiber.flags |= 16))
: workInProgress.push(current);
renderLanes.flags |= 2;
renderLanes.flags |= 134217730;
return renderLanes;
}
if (null !== current)
Expand Down Expand Up @@ -12542,7 +12542,7 @@
renderLanes
);
for (workInProgress.child = renderLanes; renderLanes; )
(renderLanes.flags = (renderLanes.flags & -3) | 4096),
(renderLanes.flags = (renderLanes.flags & -3) | 134221824),
(renderLanes = renderLanes.sibling);
}
else {
Expand Down Expand Up @@ -21734,7 +21734,7 @@
isStrictModeFiber
)
: null === fiber.memoizedState &&
(isStrictModeFiber && fiber.flags & 8192
(isStrictModeFiber && fiber.flags & 134225920
? runWithFiberInDEV(
fiber,
doubleInvokeEffectsOnFiber,
Expand Down Expand Up @@ -32865,11 +32865,11 @@
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.3.0-experimental-fef12a01-20260413" !== isomorphicReactPackageVersion)
if ("19.3.0-experimental-da9325b5-20260417" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.3.0-experimental-fef12a01-20260413\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.3.0-experimental-da9325b5-20260417\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -32906,10 +32906,10 @@
!(function () {
var internals = {
bundleType: 1,
version: "19.3.0-experimental-fef12a01-20260413",
version: "19.3.0-experimental-da9325b5-20260417",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-experimental-fef12a01-20260413"
reconcilerVersion: "19.3.0-experimental-da9325b5-20260417"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -33057,7 +33057,7 @@
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.3.0-experimental-fef12a01-20260413";
exports.version = "19.3.0-experimental-da9325b5-20260417";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6941,7 +6941,7 @@ function updateActivityComponent(current, workInProgress, renderLanes) {
null !== current &&
restoreSuspendedTreeContext(workInProgress, current),
(workInProgress = mountActivityChildren(workInProgress, nextProps)),
(workInProgress.flags |= 4096);
(workInProgress.flags |= 134221824);
return workInProgress;
}
current = createWorkInProgress(current.child, {
Expand Down Expand Up @@ -7517,7 +7517,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
workInProgress,
nextProps.children
)),
(workInProgress.flags |= 4096));
(workInProgress.flags |= 134221824));
return workInProgress;
}
if (showFallback)
Expand Down Expand Up @@ -8148,7 +8148,7 @@ function beginWork(current, workInProgress, renderLanes) {
renderLanes
);
for (workInProgress.child = renderLanes; renderLanes; )
(renderLanes.flags = (renderLanes.flags & -3) | 4096),
(renderLanes.flags = (renderLanes.flags & -3) | 134221824),
(renderLanes = renderLanes.sibling);
}
else {
Expand Down Expand Up @@ -19930,14 +19930,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2237 = React.version;
if (
"19.3.0-experimental-fef12a01-20260413" !==
"19.3.0-experimental-da9325b5-20260417" !==
isomorphicReactPackageVersion$jscomp$inline_2237
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2237,
"19.3.0-experimental-fef12a01-20260413"
"19.3.0-experimental-da9325b5-20260417"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -19959,10 +19959,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2922 = {
bundleType: 0,
version: "19.3.0-experimental-fef12a01-20260413",
version: "19.3.0-experimental-da9325b5-20260417",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-experimental-fef12a01-20260413"
reconcilerVersion: "19.3.0-experimental-da9325b5-20260417"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2923 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -20069,4 +20069,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.3.0-experimental-fef12a01-20260413";
exports.version = "19.3.0-experimental-da9325b5-20260417";
Original file line number Diff line number Diff line change
Expand Up @@ -10663,7 +10663,7 @@
null !== current &&
restoreSuspendedTreeContext(workInProgress, current),
(workInProgress = mountActivityChildren(workInProgress, nextProps)),
(workInProgress.flags |= 4096);
(workInProgress.flags |= 134221824);
return workInProgress;
}
prevState = current.child;
Expand Down Expand Up @@ -11659,7 +11659,7 @@
workInProgress,
JSCompiler_object_inline_stack_3229.children
)),
(workInProgress.flags |= 4096));
(workInProgress.flags |= 134221824));
return workInProgress;
}
}
Expand Down Expand Up @@ -12320,7 +12320,7 @@
null === workInProgress
? ((returnFiber.deletions = [current]), (returnFiber.flags |= 16))
: workInProgress.push(current);
renderLanes.flags |= 2;
renderLanes.flags |= 134217730;
return renderLanes;
}
if (null !== current)
Expand Down Expand Up @@ -12550,7 +12550,7 @@
renderLanes
);
for (workInProgress.child = renderLanes; renderLanes; )
(renderLanes.flags = (renderLanes.flags & -3) | 4096),
(renderLanes.flags = (renderLanes.flags & -3) | 134221824),
(renderLanes = renderLanes.sibling);
}
else {
Expand Down Expand Up @@ -21742,7 +21742,7 @@
isStrictModeFiber
)
: null === fiber.memoizedState &&
(isStrictModeFiber && fiber.flags & 8192
(isStrictModeFiber && fiber.flags & 134225920
? runWithFiberInDEV(
fiber,
doubleInvokeEffectsOnFiber,
Expand Down Expand Up @@ -32922,11 +32922,11 @@
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.3.0-experimental-fef12a01-20260413" !== isomorphicReactPackageVersion)
if ("19.3.0-experimental-da9325b5-20260417" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.3.0-experimental-fef12a01-20260413\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.3.0-experimental-da9325b5-20260417\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
Expand Down Expand Up @@ -32963,10 +32963,10 @@
!(function () {
var internals = {
bundleType: 1,
version: "19.3.0-experimental-fef12a01-20260413",
version: "19.3.0-experimental-da9325b5-20260417",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-experimental-fef12a01-20260413"
reconcilerVersion: "19.3.0-experimental-da9325b5-20260417"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -33444,7 +33444,7 @@
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.3.0-experimental-fef12a01-20260413";
exports.version = "19.3.0-experimental-da9325b5-20260417";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7481,7 +7481,7 @@ function updateActivityComponent(current, workInProgress, renderLanes) {
null !== current &&
restoreSuspendedTreeContext(workInProgress, current),
(workInProgress = mountActivityChildren(workInProgress, nextProps)),
(workInProgress.flags |= 4096);
(workInProgress.flags |= 134221824);
return workInProgress;
}
current = createWorkInProgress(current.child, {
Expand Down Expand Up @@ -8056,7 +8056,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
workInProgress,
nextProps.children
)),
(workInProgress.flags |= 4096));
(workInProgress.flags |= 134221824));
return workInProgress;
}
if (showFallback)
Expand Down Expand Up @@ -8696,7 +8696,7 @@ function beginWork(current, workInProgress, renderLanes) {
renderLanes
);
for (workInProgress.child = renderLanes; renderLanes; )
(renderLanes.flags = (renderLanes.flags & -3) | 4096),
(renderLanes.flags = (renderLanes.flags & -3) | 134221824),
(renderLanes = renderLanes.sibling);
}
else {
Expand Down Expand Up @@ -22013,14 +22013,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2541 = React.version;
if (
"19.3.0-experimental-fef12a01-20260413" !==
"19.3.0-experimental-da9325b5-20260417" !==
isomorphicReactPackageVersion$jscomp$inline_2541
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2541,
"19.3.0-experimental-fef12a01-20260413"
"19.3.0-experimental-da9325b5-20260417"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
Expand All @@ -22042,10 +22042,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_3243 = {
bundleType: 0,
version: "19.3.0-experimental-fef12a01-20260413",
version: "19.3.0-experimental-da9325b5-20260417",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.3.0-experimental-fef12a01-20260413"
reconcilerVersion: "19.3.0-experimental-da9325b5-20260417"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_3244 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -22313,7 +22313,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.3.0-experimental-fef12a01-20260413";
exports.version = "19.3.0-experimental-da9325b5-20260417";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Loading
Loading