react-dom 16.8.0-alpha.0 → 16.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-info.json +6 -6
- package/cjs/react-dom-server.browser.development.js +169 -80
- package/cjs/react-dom-server.browser.production.min.js +35 -34
- package/cjs/react-dom-server.node.development.js +169 -80
- package/cjs/react-dom-server.node.production.min.js +35 -34
- package/cjs/react-dom-test-utils.development.js +52 -3
- package/cjs/react-dom-test-utils.production.min.js +23 -23
- package/cjs/react-dom-unstable-fire.development.js +4081 -3078
- package/cjs/react-dom-unstable-fire.production.min.js +254 -245
- package/cjs/react-dom-unstable-fire.profiling.min.js +230 -225
- package/cjs/react-dom-unstable-fizz.browser.development.js +1 -1
- package/cjs/react-dom-unstable-fizz.browser.production.min.js +1 -1
- package/cjs/react-dom-unstable-fizz.node.development.js +1 -1
- package/cjs/react-dom-unstable-fizz.node.production.min.js +1 -1
- package/cjs/react-dom-unstable-native-dependencies.development.js +2 -2
- package/cjs/react-dom-unstable-native-dependencies.production.min.js +1 -1
- package/cjs/react-dom.development.js +4078 -3076
- package/cjs/react-dom.production.min.js +254 -245
- package/cjs/react-dom.profiling.min.js +230 -225
- package/package.json +24 -52
- package/umd/react-dom-server.browser.development.js +169 -80
- package/umd/react-dom-server.browser.production.min.js +32 -32
- package/umd/react-dom-test-utils.development.js +52 -3
- package/umd/react-dom-test-utils.production.min.js +22 -21
- package/umd/react-dom-unstable-fire.development.js +4089 -3078
- package/umd/react-dom-unstable-fire.production.min.js +208 -202
- package/umd/react-dom-unstable-fire.profiling.min.js +212 -208
- package/umd/react-dom-unstable-fizz.browser.development.js +1 -1
- package/umd/react-dom-unstable-fizz.browser.production.min.js +1 -1
- package/umd/react-dom-unstable-native-dependencies.development.js +2 -2
- package/umd/react-dom-unstable-native-dependencies.production.min.js +1 -1
- package/umd/react-dom.development.js +4086 -3076
- package/umd/react-dom.production.min.js +208 -202
- package/umd/react-dom.profiling.min.js +212 -208
package/build-info.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"branch": "
|
|
3
|
-
"buildNumber":
|
|
4
|
-
"checksum": "
|
|
5
|
-
"commit": "
|
|
6
|
-
"environment": "
|
|
7
|
-
"reactVersion": "16.
|
|
2
|
+
"branch": "master",
|
|
3
|
+
"buildNumber": null,
|
|
4
|
+
"checksum": "2cfdfb4",
|
|
5
|
+
"commit": "dfabb77a9",
|
|
6
|
+
"environment": "local",
|
|
7
|
+
"reactVersion": "16.8.1-canary-dfabb77a9"
|
|
8
8
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.8.
|
|
1
|
+
/** @license React v16.8.2
|
|
2
2
|
* react-dom-server.browser.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -66,7 +66,7 @@ function invariant(condition, format, a, b, c, d, e, f) {
|
|
|
66
66
|
|
|
67
67
|
// TODO: this is special because it gets imported during build.
|
|
68
68
|
|
|
69
|
-
var ReactVersion = '16.8.
|
|
69
|
+
var ReactVersion = '16.8.2';
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* Similar to invariant but only logs a warning if the condition is not met.
|
|
@@ -256,6 +256,15 @@ var lowPriorityWarning$1 = lowPriorityWarning;
|
|
|
256
256
|
|
|
257
257
|
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
258
258
|
|
|
259
|
+
// Prevent newer renderers from RTE when used with older react package versions.
|
|
260
|
+
// Current owner and dispatcher used to share the same ref,
|
|
261
|
+
// but PR #14548 split them out to better support the react-debug-tools package.
|
|
262
|
+
if (!ReactSharedInternals.hasOwnProperty('ReactCurrentDispatcher')) {
|
|
263
|
+
ReactSharedInternals.ReactCurrentDispatcher = {
|
|
264
|
+
current: null
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
|
|
259
268
|
/**
|
|
260
269
|
* Similar to invariant but only logs a warning if the condition is not met.
|
|
261
270
|
* This can be used to log issues in development environments in critical
|
|
@@ -312,7 +321,6 @@ var describeComponentFrame = function (name, source, ownerName) {
|
|
|
312
321
|
return '\n in ' + (name || 'Unknown') + sourceInfo;
|
|
313
322
|
};
|
|
314
323
|
|
|
315
|
-
var enableHooks = true;
|
|
316
324
|
// Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
|
|
317
325
|
|
|
318
326
|
|
|
@@ -733,12 +741,15 @@ var capitalize = function (token) {
|
|
|
733
741
|
attributeName, 'http://www.w3.org/XML/1998/namespace');
|
|
734
742
|
});
|
|
735
743
|
|
|
736
|
-
//
|
|
737
|
-
//
|
|
738
|
-
//
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
744
|
+
// These attribute exists both in HTML and SVG.
|
|
745
|
+
// The attribute name is case-sensitive in SVG so we can't just use
|
|
746
|
+
// the React name like we do for attributes that exist only in HTML.
|
|
747
|
+
['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
|
|
748
|
+
properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
|
|
749
|
+
attributeName.toLowerCase(), // attributeName
|
|
750
|
+
null);
|
|
751
|
+
} // attributeNamespace
|
|
752
|
+
);
|
|
742
753
|
|
|
743
754
|
// code copied and modified from escape-html
|
|
744
755
|
/**
|
|
@@ -902,21 +913,6 @@ function is(x, y) {
|
|
|
902
913
|
;
|
|
903
914
|
}
|
|
904
915
|
|
|
905
|
-
function areHookInputsEqual(arr1, arr2) {
|
|
906
|
-
// Don't bother comparing lengths in prod because these arrays should be
|
|
907
|
-
// passed inline.
|
|
908
|
-
{
|
|
909
|
-
!(arr1.length === arr2.length) ? warning$1(false, 'Detected a variable number of hook dependencies. The length of the ' + 'dependencies array should be constant between renders.\n\n' + 'Previous: %s\n' + 'Incoming: %s', arr1.join(', '), arr2.join(', ')) : void 0;
|
|
910
|
-
}
|
|
911
|
-
for (var i = 0; i < arr1.length; i++) {
|
|
912
|
-
if (is(arr1[i], arr2[i])) {
|
|
913
|
-
continue;
|
|
914
|
-
}
|
|
915
|
-
return false;
|
|
916
|
-
}
|
|
917
|
-
return true;
|
|
918
|
-
}
|
|
919
|
-
|
|
920
916
|
var currentlyRenderingComponent = null;
|
|
921
917
|
var firstWorkInProgressHook = null;
|
|
922
918
|
var workInProgressHook = null;
|
|
@@ -930,12 +926,47 @@ var renderPhaseUpdates = null;
|
|
|
930
926
|
var numberOfReRenders = 0;
|
|
931
927
|
var RE_RENDER_LIMIT = 25;
|
|
932
928
|
|
|
929
|
+
var isInHookUserCodeInDev = false;
|
|
930
|
+
|
|
931
|
+
// In DEV, this is the name of the currently executing primitive hook
|
|
932
|
+
var currentHookNameInDev = void 0;
|
|
933
|
+
|
|
933
934
|
function resolveCurrentlyRenderingComponent() {
|
|
934
|
-
!(currentlyRenderingComponent !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0;
|
|
935
|
+
!(currentlyRenderingComponent !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component. (https://fb.me/react-invalid-hook-call)') : void 0;
|
|
936
|
+
{
|
|
937
|
+
!!isInHookUserCodeInDev ? warning$1(false, 'Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://fb.me/rules-of-hooks') : void 0;
|
|
938
|
+
}
|
|
935
939
|
return currentlyRenderingComponent;
|
|
936
940
|
}
|
|
937
941
|
|
|
942
|
+
function areHookInputsEqual(nextDeps, prevDeps) {
|
|
943
|
+
if (prevDeps === null) {
|
|
944
|
+
{
|
|
945
|
+
warning$1(false, '%s received a final argument during this render, but not during ' + 'the previous render. Even though the final argument is optional, ' + 'its type cannot change between renders.', currentHookNameInDev);
|
|
946
|
+
}
|
|
947
|
+
return false;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
{
|
|
951
|
+
// Don't bother comparing lengths in prod because these arrays should be
|
|
952
|
+
// passed inline.
|
|
953
|
+
if (nextDeps.length !== prevDeps.length) {
|
|
954
|
+
warning$1(false, 'The final argument passed to %s changed size between renders. The ' + 'order and size of this array must remain constant.\n\n' + 'Previous: %s\n' + 'Incoming: %s', currentHookNameInDev, '[' + nextDeps.join(', ') + ']', '[' + prevDeps.join(', ') + ']');
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) {
|
|
958
|
+
if (is(nextDeps[i], prevDeps[i])) {
|
|
959
|
+
continue;
|
|
960
|
+
}
|
|
961
|
+
return false;
|
|
962
|
+
}
|
|
963
|
+
return true;
|
|
964
|
+
}
|
|
965
|
+
|
|
938
966
|
function createHook() {
|
|
967
|
+
if (numberOfReRenders > 0) {
|
|
968
|
+
invariant(false, 'Rendered more hooks than during the previous render');
|
|
969
|
+
}
|
|
939
970
|
return {
|
|
940
971
|
memoizedState: null,
|
|
941
972
|
queue: null,
|
|
@@ -970,6 +1001,9 @@ function createWorkInProgressHook() {
|
|
|
970
1001
|
|
|
971
1002
|
function prepareToUseHooks(componentIdentity) {
|
|
972
1003
|
currentlyRenderingComponent = componentIdentity;
|
|
1004
|
+
{
|
|
1005
|
+
isInHookUserCodeInDev = false;
|
|
1006
|
+
}
|
|
973
1007
|
|
|
974
1008
|
// The following should have already been reset
|
|
975
1009
|
// didScheduleRenderPhaseUpdate = false;
|
|
@@ -1001,6 +1035,9 @@ function finishHooks(Component, props, children, refOrContext) {
|
|
|
1001
1035
|
numberOfReRenders = 0;
|
|
1002
1036
|
renderPhaseUpdates = null;
|
|
1003
1037
|
workInProgressHook = null;
|
|
1038
|
+
{
|
|
1039
|
+
isInHookUserCodeInDev = false;
|
|
1040
|
+
}
|
|
1004
1041
|
|
|
1005
1042
|
// These were reset above
|
|
1006
1043
|
// currentlyRenderingComponent = null;
|
|
@@ -1016,10 +1053,16 @@ function finishHooks(Component, props, children, refOrContext) {
|
|
|
1016
1053
|
function readContext(context, observedBits) {
|
|
1017
1054
|
var threadID = currentThreadID;
|
|
1018
1055
|
validateContextBounds(context, threadID);
|
|
1056
|
+
{
|
|
1057
|
+
!!isInHookUserCodeInDev ? warning$1(false, 'Context can only be read while React is rendering. ' + 'In classes, you can read it in the render method or getDerivedStateFromProps. ' + 'In function components, you can read it directly in the function body, but not ' + 'inside Hooks like useReducer() or useMemo().') : void 0;
|
|
1058
|
+
}
|
|
1019
1059
|
return context[threadID];
|
|
1020
1060
|
}
|
|
1021
1061
|
|
|
1022
1062
|
function useContext(context, observedBits) {
|
|
1063
|
+
{
|
|
1064
|
+
currentHookNameInDev = 'useContext';
|
|
1065
|
+
}
|
|
1023
1066
|
resolveCurrentlyRenderingComponent();
|
|
1024
1067
|
var threadID = currentThreadID;
|
|
1025
1068
|
validateContextBounds(context, threadID);
|
|
@@ -1031,12 +1074,20 @@ function basicStateReducer(state, action) {
|
|
|
1031
1074
|
}
|
|
1032
1075
|
|
|
1033
1076
|
function useState(initialState) {
|
|
1077
|
+
{
|
|
1078
|
+
currentHookNameInDev = 'useState';
|
|
1079
|
+
}
|
|
1034
1080
|
return useReducer(basicStateReducer,
|
|
1035
1081
|
// useReducer has a special case to support lazy useState initializers
|
|
1036
1082
|
initialState);
|
|
1037
1083
|
}
|
|
1038
1084
|
|
|
1039
|
-
function useReducer(reducer,
|
|
1085
|
+
function useReducer(reducer, initialArg, init) {
|
|
1086
|
+
{
|
|
1087
|
+
if (reducer !== basicStateReducer) {
|
|
1088
|
+
currentHookNameInDev = 'useReducer';
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1040
1091
|
currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
|
|
1041
1092
|
workInProgressHook = createWorkInProgressHook();
|
|
1042
1093
|
if (isReRender) {
|
|
@@ -1055,7 +1106,13 @@ function useReducer(reducer, initialState, initialAction) {
|
|
|
1055
1106
|
// priority because it will always be the same as the current
|
|
1056
1107
|
// render's.
|
|
1057
1108
|
var _action = update.action;
|
|
1109
|
+
{
|
|
1110
|
+
isInHookUserCodeInDev = true;
|
|
1111
|
+
}
|
|
1058
1112
|
newState = reducer(newState, _action);
|
|
1113
|
+
{
|
|
1114
|
+
isInHookUserCodeInDev = false;
|
|
1115
|
+
}
|
|
1059
1116
|
update = update.next;
|
|
1060
1117
|
} while (update !== null);
|
|
1061
1118
|
|
|
@@ -1066,13 +1123,18 @@ function useReducer(reducer, initialState, initialAction) {
|
|
|
1066
1123
|
}
|
|
1067
1124
|
return [workInProgressHook.memoizedState, _dispatch];
|
|
1068
1125
|
} else {
|
|
1126
|
+
{
|
|
1127
|
+
isInHookUserCodeInDev = true;
|
|
1128
|
+
}
|
|
1129
|
+
var initialState = void 0;
|
|
1069
1130
|
if (reducer === basicStateReducer) {
|
|
1070
1131
|
// Special case for `useState`.
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1132
|
+
initialState = typeof initialArg === 'function' ? initialArg() : initialArg;
|
|
1133
|
+
} else {
|
|
1134
|
+
initialState = init !== undefined ? init(initialArg) : initialArg;
|
|
1135
|
+
}
|
|
1136
|
+
{
|
|
1137
|
+
isInHookUserCodeInDev = false;
|
|
1076
1138
|
}
|
|
1077
1139
|
workInProgressHook.memoizedState = initialState;
|
|
1078
1140
|
var _queue2 = workInProgressHook.queue = {
|
|
@@ -1084,22 +1146,32 @@ function useReducer(reducer, initialState, initialAction) {
|
|
|
1084
1146
|
}
|
|
1085
1147
|
}
|
|
1086
1148
|
|
|
1087
|
-
function useMemo(nextCreate,
|
|
1149
|
+
function useMemo(nextCreate, deps) {
|
|
1088
1150
|
currentlyRenderingComponent = resolveCurrentlyRenderingComponent();
|
|
1089
1151
|
workInProgressHook = createWorkInProgressHook();
|
|
1090
1152
|
|
|
1091
|
-
var
|
|
1153
|
+
var nextDeps = deps === undefined ? null : deps;
|
|
1092
1154
|
|
|
1093
|
-
if (workInProgressHook !== null
|
|
1155
|
+
if (workInProgressHook !== null) {
|
|
1094
1156
|
var prevState = workInProgressHook.memoizedState;
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1157
|
+
if (prevState !== null) {
|
|
1158
|
+
if (nextDeps !== null) {
|
|
1159
|
+
var prevDeps = prevState[1];
|
|
1160
|
+
if (areHookInputsEqual(nextDeps, prevDeps)) {
|
|
1161
|
+
return prevState[0];
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1098
1164
|
}
|
|
1099
1165
|
}
|
|
1100
1166
|
|
|
1167
|
+
{
|
|
1168
|
+
isInHookUserCodeInDev = true;
|
|
1169
|
+
}
|
|
1101
1170
|
var nextValue = nextCreate();
|
|
1102
|
-
|
|
1171
|
+
{
|
|
1172
|
+
isInHookUserCodeInDev = false;
|
|
1173
|
+
}
|
|
1174
|
+
workInProgressHook.memoizedState = [nextValue, nextDeps];
|
|
1103
1175
|
return nextValue;
|
|
1104
1176
|
}
|
|
1105
1177
|
|
|
@@ -1120,6 +1192,9 @@ function useRef(initialValue) {
|
|
|
1120
1192
|
}
|
|
1121
1193
|
|
|
1122
1194
|
function useLayoutEffect(create, inputs) {
|
|
1195
|
+
{
|
|
1196
|
+
currentHookNameInDev = 'useLayoutEffect';
|
|
1197
|
+
}
|
|
1123
1198
|
warning$1(false, 'useLayoutEffect does nothing on the server, because its effect cannot ' + "be encoded into the server renderer's output format. This will lead " + 'to a mismatch between the initial, non-hydrated UI and the intended ' + 'UI. To avoid this, useLayoutEffect should only be used in ' + 'components that render exclusively on the client.');
|
|
1124
1199
|
}
|
|
1125
1200
|
|
|
@@ -1156,11 +1231,13 @@ function dispatchAction(componentIdentity, queue, action) {
|
|
|
1156
1231
|
}
|
|
1157
1232
|
}
|
|
1158
1233
|
|
|
1159
|
-
function
|
|
1160
|
-
|
|
1161
|
-
return
|
|
1234
|
+
function useCallback(callback, deps) {
|
|
1235
|
+
// Callbacks are passed as they are in the server environment.
|
|
1236
|
+
return callback;
|
|
1162
1237
|
}
|
|
1163
1238
|
|
|
1239
|
+
function noop() {}
|
|
1240
|
+
|
|
1164
1241
|
var currentThreadID = 0;
|
|
1165
1242
|
|
|
1166
1243
|
function setCurrentThreadID(threadID) {
|
|
@@ -1175,15 +1252,13 @@ var Dispatcher = {
|
|
|
1175
1252
|
useRef: useRef,
|
|
1176
1253
|
useState: useState,
|
|
1177
1254
|
useLayoutEffect: useLayoutEffect,
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
useImperativeMethods: noop,
|
|
1255
|
+
useCallback: useCallback,
|
|
1256
|
+
// useImperativeHandle is not run in the server environment
|
|
1257
|
+
useImperativeHandle: noop,
|
|
1182
1258
|
// Effects are not run in the server environment.
|
|
1183
|
-
useEffect: noop
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
readContext: readContext
|
|
1259
|
+
useEffect: noop,
|
|
1260
|
+
// Debugging effect
|
|
1261
|
+
useDebugValue: noop
|
|
1187
1262
|
};
|
|
1188
1263
|
|
|
1189
1264
|
var HTML_NAMESPACE = 'http://www.w3.org/1999/xhtml';
|
|
@@ -3001,11 +3076,7 @@ var ReactDOMServerRenderer = function () {
|
|
|
3001
3076
|
var prevThreadID = currentThreadID;
|
|
3002
3077
|
setCurrentThreadID(this.threadID);
|
|
3003
3078
|
var prevDispatcher = ReactCurrentDispatcher.current;
|
|
3004
|
-
|
|
3005
|
-
ReactCurrentDispatcher.current = Dispatcher;
|
|
3006
|
-
} else {
|
|
3007
|
-
ReactCurrentDispatcher.current = DispatcherWithoutHooks;
|
|
3008
|
-
}
|
|
3079
|
+
ReactCurrentDispatcher.current = Dispatcher;
|
|
3009
3080
|
try {
|
|
3010
3081
|
// Markup generated within <Suspense> ends up buffered until we know
|
|
3011
3082
|
// nothing in that boundary suspended
|
|
@@ -3162,7 +3233,25 @@ var ReactDOMServerRenderer = function () {
|
|
|
3162
3233
|
case REACT_SUSPENSE_TYPE:
|
|
3163
3234
|
{
|
|
3164
3235
|
if (enableSuspenseServerRenderer) {
|
|
3165
|
-
var
|
|
3236
|
+
var fallback = nextChild.props.fallback;
|
|
3237
|
+
if (fallback === undefined) {
|
|
3238
|
+
// If there is no fallback, then this just behaves as a fragment.
|
|
3239
|
+
var _nextChildren3 = toArray(nextChild.props.children);
|
|
3240
|
+
var _frame3 = {
|
|
3241
|
+
type: null,
|
|
3242
|
+
domNamespace: parentNamespace,
|
|
3243
|
+
children: _nextChildren3,
|
|
3244
|
+
childIndex: 0,
|
|
3245
|
+
context: context,
|
|
3246
|
+
footer: ''
|
|
3247
|
+
};
|
|
3248
|
+
{
|
|
3249
|
+
_frame3.debugElementStack = [];
|
|
3250
|
+
}
|
|
3251
|
+
this.stack.push(_frame3);
|
|
3252
|
+
return '';
|
|
3253
|
+
}
|
|
3254
|
+
var fallbackChildren = toArray(fallback);
|
|
3166
3255
|
var _nextChildren2 = toArray(nextChild.props.children);
|
|
3167
3256
|
var _fallbackFrame2 = {
|
|
3168
3257
|
type: null,
|
|
@@ -3180,7 +3269,7 @@ var ReactDOMServerRenderer = function () {
|
|
|
3180
3269
|
children: _nextChildren2,
|
|
3181
3270
|
childIndex: 0,
|
|
3182
3271
|
context: context,
|
|
3183
|
-
footer: ''
|
|
3272
|
+
footer: '<!--/$-->'
|
|
3184
3273
|
};
|
|
3185
3274
|
{
|
|
3186
3275
|
_frame2.debugElementStack = [];
|
|
@@ -3188,7 +3277,7 @@ var ReactDOMServerRenderer = function () {
|
|
|
3188
3277
|
}
|
|
3189
3278
|
this.stack.push(_frame2);
|
|
3190
3279
|
this.suspenseDepth++;
|
|
3191
|
-
return '';
|
|
3280
|
+
return '<!--$-->';
|
|
3192
3281
|
} else {
|
|
3193
3282
|
invariant(false, 'ReactDOMServer does not yet support Suspense.');
|
|
3194
3283
|
}
|
|
@@ -3202,64 +3291,64 @@ var ReactDOMServerRenderer = function () {
|
|
|
3202
3291
|
case REACT_FORWARD_REF_TYPE:
|
|
3203
3292
|
{
|
|
3204
3293
|
var element = nextChild;
|
|
3205
|
-
var
|
|
3294
|
+
var _nextChildren4 = void 0;
|
|
3206
3295
|
var componentIdentity = {};
|
|
3207
3296
|
prepareToUseHooks(componentIdentity);
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
var
|
|
3297
|
+
_nextChildren4 = elementType.render(element.props, element.ref);
|
|
3298
|
+
_nextChildren4 = finishHooks(elementType.render, element.props, _nextChildren4, element.ref);
|
|
3299
|
+
_nextChildren4 = toArray(_nextChildren4);
|
|
3300
|
+
var _frame4 = {
|
|
3212
3301
|
type: null,
|
|
3213
3302
|
domNamespace: parentNamespace,
|
|
3214
|
-
children:
|
|
3303
|
+
children: _nextChildren4,
|
|
3215
3304
|
childIndex: 0,
|
|
3216
3305
|
context: context,
|
|
3217
3306
|
footer: ''
|
|
3218
3307
|
};
|
|
3219
3308
|
{
|
|
3220
|
-
|
|
3309
|
+
_frame4.debugElementStack = [];
|
|
3221
3310
|
}
|
|
3222
|
-
this.stack.push(
|
|
3311
|
+
this.stack.push(_frame4);
|
|
3223
3312
|
return '';
|
|
3224
3313
|
}
|
|
3225
3314
|
case REACT_MEMO_TYPE:
|
|
3226
3315
|
{
|
|
3227
3316
|
var _element = nextChild;
|
|
3228
|
-
var
|
|
3229
|
-
var
|
|
3317
|
+
var _nextChildren5 = [React.createElement(elementType.type, _assign({ ref: _element.ref }, _element.props))];
|
|
3318
|
+
var _frame5 = {
|
|
3230
3319
|
type: null,
|
|
3231
3320
|
domNamespace: parentNamespace,
|
|
3232
|
-
children:
|
|
3321
|
+
children: _nextChildren5,
|
|
3233
3322
|
childIndex: 0,
|
|
3234
3323
|
context: context,
|
|
3235
3324
|
footer: ''
|
|
3236
3325
|
};
|
|
3237
3326
|
{
|
|
3238
|
-
|
|
3327
|
+
_frame5.debugElementStack = [];
|
|
3239
3328
|
}
|
|
3240
|
-
this.stack.push(
|
|
3329
|
+
this.stack.push(_frame5);
|
|
3241
3330
|
return '';
|
|
3242
3331
|
}
|
|
3243
3332
|
case REACT_PROVIDER_TYPE:
|
|
3244
3333
|
{
|
|
3245
3334
|
var provider = nextChild;
|
|
3246
3335
|
var nextProps = provider.props;
|
|
3247
|
-
var
|
|
3248
|
-
var
|
|
3336
|
+
var _nextChildren6 = toArray(nextProps.children);
|
|
3337
|
+
var _frame6 = {
|
|
3249
3338
|
type: provider,
|
|
3250
3339
|
domNamespace: parentNamespace,
|
|
3251
|
-
children:
|
|
3340
|
+
children: _nextChildren6,
|
|
3252
3341
|
childIndex: 0,
|
|
3253
3342
|
context: context,
|
|
3254
3343
|
footer: ''
|
|
3255
3344
|
};
|
|
3256
3345
|
{
|
|
3257
|
-
|
|
3346
|
+
_frame6.debugElementStack = [];
|
|
3258
3347
|
}
|
|
3259
3348
|
|
|
3260
3349
|
this.pushProvider(provider);
|
|
3261
3350
|
|
|
3262
|
-
this.stack.push(
|
|
3351
|
+
this.stack.push(_frame6);
|
|
3263
3352
|
return '';
|
|
3264
3353
|
}
|
|
3265
3354
|
case REACT_CONTEXT_TYPE:
|
|
@@ -3292,19 +3381,19 @@ var ReactDOMServerRenderer = function () {
|
|
|
3292
3381
|
validateContextBounds(reactContext, threadID);
|
|
3293
3382
|
var nextValue = reactContext[threadID];
|
|
3294
3383
|
|
|
3295
|
-
var
|
|
3296
|
-
var
|
|
3384
|
+
var _nextChildren7 = toArray(_nextProps.children(nextValue));
|
|
3385
|
+
var _frame7 = {
|
|
3297
3386
|
type: nextChild,
|
|
3298
3387
|
domNamespace: parentNamespace,
|
|
3299
|
-
children:
|
|
3388
|
+
children: _nextChildren7,
|
|
3300
3389
|
childIndex: 0,
|
|
3301
3390
|
context: context,
|
|
3302
3391
|
footer: ''
|
|
3303
3392
|
};
|
|
3304
3393
|
{
|
|
3305
|
-
|
|
3394
|
+
_frame7.debugElementStack = [];
|
|
3306
3395
|
}
|
|
3307
|
-
this.stack.push(
|
|
3396
|
+
this.stack.push(_frame7);
|
|
3308
3397
|
return '';
|
|
3309
3398
|
}
|
|
3310
3399
|
case REACT_LAZY_TYPE:
|