forked from facebook/react
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Re-land] Make prerendering always non-blocking: Add missing feature …
…flag checks (facebook#31238) This is a partial re-land of facebook#31056. We saw breakages surface after the original land and had to revert. Now that they've been fixed, let's try this again. This time we'll split up the commits to give us more control of testing and rollout internally. Original PR: facebook#31056 Original Commit: facebook@2a9fb44 Revert PR: facebook#31080 Commit description: ``` Neglected to wrap some places in the enableSiblingPrerendering flag. ``` Co-authored-by: Andrew Clark <[email protected]> DiffTrain build for [13411e4](facebook@13411e4)
- Loading branch information
Showing
32 changed files
with
136,436 additions
and
18,268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
19.0.0-native-fb-e02baf6c92-20240627 | ||
19.0.0-native-fb-13411e45-20241014 |
424 changes: 424 additions & 0 deletions
424
...iled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js
Large diffs are not rendered by default.
Oops, something went wrong.
206 changes: 206 additions & 0 deletions
206
...led-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,206 @@ | ||
/** | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
* | ||
* @noflow | ||
* @nolint | ||
* @preventMunge | ||
* @generated SignedSource<<2dd40d3277960a40fd61ad48c151ffa8>> | ||
*/ | ||
|
||
"use strict"; | ||
var React = require("react"); | ||
function formatProdErrorMessage(code) { | ||
var url = "https://react.dev/errors/" + code; | ||
if (1 < arguments.length) { | ||
url += "?args[]=" + encodeURIComponent(arguments[1]); | ||
for (var i = 2; i < arguments.length; i++) | ||
url += "&args[]=" + encodeURIComponent(arguments[i]); | ||
} | ||
return ( | ||
"Minified React error #" + | ||
code + | ||
"; visit " + | ||
url + | ||
" for the full message or use the non-minified dev environment for full errors and additional helpful warnings." | ||
); | ||
} | ||
function noop() {} | ||
var Internals = { | ||
d: { | ||
f: noop, | ||
r: function () { | ||
throw Error(formatProdErrorMessage(522)); | ||
}, | ||
D: noop, | ||
C: noop, | ||
L: noop, | ||
m: noop, | ||
X: noop, | ||
S: noop, | ||
M: noop | ||
}, | ||
p: 0, | ||
findDOMNode: null | ||
}, | ||
REACT_PORTAL_TYPE = Symbol.for("react.portal"); | ||
function createPortal$1(children, containerInfo, implementation) { | ||
var key = | ||
3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null; | ||
return { | ||
$$typeof: REACT_PORTAL_TYPE, | ||
key: null == key ? null : "" + key, | ||
children: children, | ||
containerInfo: containerInfo, | ||
implementation: implementation | ||
}; | ||
} | ||
var ReactSharedInternals = | ||
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; | ||
function getCrossOriginStringAs(as, input) { | ||
if ("font" === as) return ""; | ||
if ("string" === typeof input) | ||
return "use-credentials" === input ? input : ""; | ||
} | ||
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = | ||
Internals; | ||
exports.createPortal = function (children, container) { | ||
var key = | ||
2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null; | ||
if ( | ||
!container || | ||
(1 !== container.nodeType && | ||
9 !== container.nodeType && | ||
11 !== container.nodeType) | ||
) | ||
throw Error(formatProdErrorMessage(299)); | ||
return createPortal$1(children, container, null, key); | ||
}; | ||
exports.flushSync = function () { | ||
throw Error( | ||
"Expected this build of React to not support legacy mode but it does. This is a bug in React." | ||
); | ||
}; | ||
exports.preconnect = function (href, options) { | ||
"string" === typeof href && | ||
(options | ||
? ((options = options.crossOrigin), | ||
(options = | ||
"string" === typeof options | ||
? "use-credentials" === options | ||
? options | ||
: "" | ||
: void 0)) | ||
: (options = null), | ||
Internals.d.C(href, options)); | ||
}; | ||
exports.prefetchDNS = function (href) { | ||
"string" === typeof href && Internals.d.D(href); | ||
}; | ||
exports.preinit = function (href, options) { | ||
if ("string" === typeof href && options && "string" === typeof options.as) { | ||
var as = options.as, | ||
crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), | ||
integrity = | ||
"string" === typeof options.integrity ? options.integrity : void 0, | ||
fetchPriority = | ||
"string" === typeof options.fetchPriority | ||
? options.fetchPriority | ||
: void 0; | ||
"style" === as | ||
? Internals.d.S( | ||
href, | ||
"string" === typeof options.precedence ? options.precedence : void 0, | ||
{ | ||
crossOrigin: crossOrigin, | ||
integrity: integrity, | ||
fetchPriority: fetchPriority | ||
} | ||
) | ||
: "script" === as && | ||
Internals.d.X(href, { | ||
crossOrigin: crossOrigin, | ||
integrity: integrity, | ||
fetchPriority: fetchPriority, | ||
nonce: "string" === typeof options.nonce ? options.nonce : void 0 | ||
}); | ||
} | ||
}; | ||
exports.preinitModule = function (href, options) { | ||
if ("string" === typeof href) | ||
if ("object" === typeof options && null !== options) { | ||
if (null == options.as || "script" === options.as) { | ||
var crossOrigin = getCrossOriginStringAs( | ||
options.as, | ||
options.crossOrigin | ||
); | ||
Internals.d.M(href, { | ||
crossOrigin: crossOrigin, | ||
integrity: | ||
"string" === typeof options.integrity ? options.integrity : void 0, | ||
nonce: "string" === typeof options.nonce ? options.nonce : void 0 | ||
}); | ||
} | ||
} else null == options && Internals.d.M(href); | ||
}; | ||
exports.preload = function (href, options) { | ||
if ( | ||
"string" === typeof href && | ||
"object" === typeof options && | ||
null !== options && | ||
"string" === typeof options.as | ||
) { | ||
var as = options.as, | ||
crossOrigin = getCrossOriginStringAs(as, options.crossOrigin); | ||
Internals.d.L(href, as, { | ||
crossOrigin: crossOrigin, | ||
integrity: | ||
"string" === typeof options.integrity ? options.integrity : void 0, | ||
nonce: "string" === typeof options.nonce ? options.nonce : void 0, | ||
type: "string" === typeof options.type ? options.type : void 0, | ||
fetchPriority: | ||
"string" === typeof options.fetchPriority | ||
? options.fetchPriority | ||
: void 0, | ||
referrerPolicy: | ||
"string" === typeof options.referrerPolicy | ||
? options.referrerPolicy | ||
: void 0, | ||
imageSrcSet: | ||
"string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0, | ||
imageSizes: | ||
"string" === typeof options.imageSizes ? options.imageSizes : void 0, | ||
media: "string" === typeof options.media ? options.media : void 0 | ||
}); | ||
} | ||
}; | ||
exports.preloadModule = function (href, options) { | ||
if ("string" === typeof href) | ||
if (options) { | ||
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin); | ||
Internals.d.m(href, { | ||
as: | ||
"string" === typeof options.as && "script" !== options.as | ||
? options.as | ||
: void 0, | ||
crossOrigin: crossOrigin, | ||
integrity: | ||
"string" === typeof options.integrity ? options.integrity : void 0 | ||
}); | ||
} else Internals.d.m(href); | ||
}; | ||
exports.requestFormReset = function (form) { | ||
Internals.d.r(form); | ||
}; | ||
exports.unstable_batchedUpdates = function (fn, a) { | ||
return fn(a); | ||
}; | ||
exports.useFormState = function (action, initialState, permalink) { | ||
return ReactSharedInternals.H.useFormState(action, initialState, permalink); | ||
}; | ||
exports.useFormStatus = function () { | ||
return ReactSharedInternals.H.useHostTransitionStatus(); | ||
}; | ||
exports.version = "19.0.0-native-fb-13411e45-20241014"; |
Oops, something went wrong.