Skip to content

Commit 3546ca6

Browse files
committed
Tweak error message for "Should have a queue" (#29626)
DiffTrain build for commit 38e3b23.
1 parent c484123 commit 3546ca6

File tree

10 files changed

+47
-47
lines changed

10 files changed

+47
-47
lines changed

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<b01346a616a954f7e5c6aa02b898719f>>
10+
* @generated SignedSource<<8e7d9cc3ad79afcba96d9e66394cca14>>
1111
*/
1212

1313
'use strict';
@@ -8005,7 +8005,7 @@ function updateReducerImpl(hook, current, reducer) {
80058005
var queue = hook.queue;
80068006

80078007
if (queue === null) {
8008-
throw new Error('Should have a queue. This is likely a bug in React. Please file an issue.');
8008+
throw new Error('Should have a queue. You are likely calling Hooks conditionally, ' + 'which is not allowed. (https://react.dev/link/invalid-hook-call)');
80098009
}
80108010

80118011
queue.lastRenderedReducer = reducer; // The last rebase update that is NOT part of the base state.
@@ -8240,7 +8240,7 @@ function rerenderReducer(reducer, initialArg, init) {
82408240
var queue = hook.queue;
82418241

82428242
if (queue === null) {
8243-
throw new Error('Should have a queue. This is likely a bug in React. Please file an issue.');
8243+
throw new Error('Should have a queue. You are likely calling Hooks conditionally, ' + 'which is not allowed. (https://react.dev/link/invalid-hook-call)');
82448244
}
82458245

82468246
queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
@@ -23471,7 +23471,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
2347123471
return root;
2347223472
}
2347323473

23474-
var ReactVersion = '19.0.0-rc-0d4b9126';
23474+
var ReactVersion = '19.0.0-rc-f503c54f';
2347523475

2347623476
/*
2347723477
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<b82ab7c9a033e33f8860c7aed3aa5cae>>
10+
* @generated SignedSource<<d3304ee3b4da1d671688a845ea7bbe9c>>
1111
*/
1212

1313
"use strict";
@@ -2537,7 +2537,7 @@ function updateReducerImpl(hook, current, reducer) {
25372537
var queue = hook.queue;
25382538
if (null === queue)
25392539
throw Error(
2540-
"Should have a queue. This is likely a bug in React. Please file an issue."
2540+
"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)"
25412541
);
25422542
queue.lastRenderedReducer = reducer;
25432543
var baseQueue = hook.baseQueue,
@@ -2646,7 +2646,7 @@ function rerenderReducer(reducer) {
26462646
queue = hook.queue;
26472647
if (null === queue)
26482648
throw Error(
2649-
"Should have a queue. This is likely a bug in React. Please file an issue."
2649+
"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)"
26502650
);
26512651
queue.lastRenderedReducer = reducer;
26522652
var dispatch = queue.dispatch,
@@ -9298,7 +9298,7 @@ var devToolsConfig$jscomp$inline_1047 = {
92989298
throw Error("TestRenderer does not support findFiberByHostInstance()");
92999299
},
93009300
bundleType: 0,
9301-
version: "19.0.0-rc-135fcf29",
9301+
version: "19.0.0-rc-0374599b",
93029302
rendererPackageName: "react-test-renderer"
93039303
};
93049304
var internals$jscomp$inline_1234 = {
@@ -9329,7 +9329,7 @@ var internals$jscomp$inline_1234 = {
93299329
scheduleRoot: null,
93309330
setRefreshHandler: null,
93319331
getCurrentFiber: null,
9332-
reconcilerVersion: "19.0.0-rc-135fcf29"
9332+
reconcilerVersion: "19.0.0-rc-0374599b"
93339333
};
93349334
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
93359335
var hook$jscomp$inline_1235 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<b303e864c1beaa1151f860061b09a0be>>
10+
* @generated SignedSource<<4e21c55d45573268a0b3ae3a87517a05>>
1111
*/
1212

1313
"use strict";
@@ -2625,7 +2625,7 @@ function updateReducerImpl(hook, current, reducer) {
26252625
var queue = hook.queue;
26262626
if (null === queue)
26272627
throw Error(
2628-
"Should have a queue. This is likely a bug in React. Please file an issue."
2628+
"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)"
26292629
);
26302630
queue.lastRenderedReducer = reducer;
26312631
var baseQueue = hook.baseQueue,
@@ -2734,7 +2734,7 @@ function rerenderReducer(reducer) {
27342734
queue = hook.queue;
27352735
if (null === queue)
27362736
throw Error(
2737-
"Should have a queue. This is likely a bug in React. Please file an issue."
2737+
"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)"
27382738
);
27392739
queue.lastRenderedReducer = reducer;
27402740
var dispatch = queue.dispatch,
@@ -9920,7 +9920,7 @@ var devToolsConfig$jscomp$inline_1130 = {
99209920
throw Error("TestRenderer does not support findFiberByHostInstance()");
99219921
},
99229922
bundleType: 0,
9923-
version: "19.0.0-rc-17313e5b",
9923+
version: "19.0.0-rc-f50fffbf",
99249924
rendererPackageName: "react-test-renderer"
99259925
};
99269926
(function (internals) {
@@ -9964,7 +9964,7 @@ var devToolsConfig$jscomp$inline_1130 = {
99649964
scheduleRoot: null,
99659965
setRefreshHandler: null,
99669966
getCurrentFiber: null,
9967-
reconcilerVersion: "19.0.0-rc-17313e5b"
9967+
reconcilerVersion: "19.0.0-rc-f50fffbf"
99689968
});
99699969
exports._Scheduler = Scheduler;
99709970
exports.act = act;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3b29ed16386c1afb2e76c3db0d576184154ec141
1+
38e3b23483bf7a612391cd617a8926aa1f3cf52e

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<10cfb47da57f40f3c6d1aaf8620d48a4>>
10+
* @generated SignedSource<<715c7ff1aa207b21918f50cdc5380bf6>>
1111
*/
1212

1313
'use strict';
@@ -10751,7 +10751,7 @@ function updateReducerImpl(hook, current, reducer) {
1075110751
var queue = hook.queue;
1075210752

1075310753
if (queue === null) {
10754-
throw new Error('Should have a queue. This is likely a bug in React. Please file an issue.');
10754+
throw new Error('Should have a queue. You are likely calling Hooks conditionally, ' + 'which is not allowed. (https://react.dev/link/invalid-hook-call)');
1075510755
}
1075610756

1075710757
queue.lastRenderedReducer = reducer; // The last rebase update that is NOT part of the base state.
@@ -10986,7 +10986,7 @@ function rerenderReducer(reducer, initialArg, init) {
1098610986
var queue = hook.queue;
1098710987

1098810988
if (queue === null) {
10989-
throw new Error('Should have a queue. This is likely a bug in React. Please file an issue.');
10989+
throw new Error('Should have a queue. You are likely calling Hooks conditionally, ' + 'which is not allowed. (https://react.dev/link/invalid-hook-call)');
1099010990
}
1099110991

1099210992
queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
@@ -26212,7 +26212,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
2621226212
return root;
2621326213
}
2621426214

26215-
var ReactVersion = '19.0.0-rc-76d74f41';
26215+
var ReactVersion = '19.0.0-rc-6b65a277';
2621626216

2621726217
/*
2621826218
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<90fa919b6a227b2cc430690a633373b6>>
10+
* @generated SignedSource<<e220fc857a21f1b640cba2d994902482>>
1111
*/
1212

1313
"use strict";
@@ -3915,7 +3915,7 @@ function updateReducerImpl(hook, current, reducer) {
39153915
var queue = hook.queue;
39163916
if (null === queue)
39173917
throw Error(
3918-
"Should have a queue. This is likely a bug in React. Please file an issue."
3918+
"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)"
39193919
);
39203920
queue.lastRenderedReducer = reducer;
39213921
var baseQueue = hook.baseQueue,
@@ -4024,7 +4024,7 @@ function rerenderReducer(reducer) {
40244024
queue = hook.queue;
40254025
if (null === queue)
40264026
throw Error(
4027-
"Should have a queue. This is likely a bug in React. Please file an issue."
4027+
"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)"
40284028
);
40294029
queue.lastRenderedReducer = reducer;
40304030
var dispatch = queue.dispatch,
@@ -10554,7 +10554,7 @@ var roots = new Map(),
1055410554
devToolsConfig$jscomp$inline_1124 = {
1055510555
findFiberByHostInstance: getInstanceFromNode,
1055610556
bundleType: 0,
10557-
version: "19.0.0-rc-515f4c11",
10557+
version: "19.0.0-rc-a1153661",
1055810558
rendererPackageName: "react-native-renderer",
1055910559
rendererConfig: {
1056010560
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -10597,7 +10597,7 @@ var internals$jscomp$inline_1354 = {
1059710597
scheduleRoot: null,
1059810598
setRefreshHandler: null,
1059910599
getCurrentFiber: null,
10600-
reconcilerVersion: "19.0.0-rc-515f4c11"
10600+
reconcilerVersion: "19.0.0-rc-a1153661"
1060110601
};
1060210602
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1060310603
var hook$jscomp$inline_1355 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<f9a5a11486f200f08e59ce3e06fc28a3>>
10+
* @generated SignedSource<<2e682bd27fce85dbf44c7d76dad0d567>>
1111
*/
1212

1313
"use strict";
@@ -4037,7 +4037,7 @@ function updateReducerImpl(hook, current, reducer) {
40374037
var queue = hook.queue;
40384038
if (null === queue)
40394039
throw Error(
4040-
"Should have a queue. This is likely a bug in React. Please file an issue."
4040+
"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)"
40414041
);
40424042
queue.lastRenderedReducer = reducer;
40434043
var baseQueue = hook.baseQueue,
@@ -4146,7 +4146,7 @@ function rerenderReducer(reducer) {
41464146
queue = hook.queue;
41474147
if (null === queue)
41484148
throw Error(
4149-
"Should have a queue. This is likely a bug in React. Please file an issue."
4149+
"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)"
41504150
);
41514151
queue.lastRenderedReducer = reducer;
41524152
var dispatch = queue.dispatch,
@@ -11260,7 +11260,7 @@ var roots = new Map(),
1126011260
devToolsConfig$jscomp$inline_1205 = {
1126111261
findFiberByHostInstance: getInstanceFromNode,
1126211262
bundleType: 0,
11263-
version: "19.0.0-rc-1abc9c11",
11263+
version: "19.0.0-rc-cefeada5",
1126411264
rendererPackageName: "react-native-renderer",
1126511265
rendererConfig: {
1126611266
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -11316,7 +11316,7 @@ var roots = new Map(),
1131611316
scheduleRoot: null,
1131711317
setRefreshHandler: null,
1131811318
getCurrentFiber: null,
11319-
reconcilerVersion: "19.0.0-rc-1abc9c11"
11319+
reconcilerVersion: "19.0.0-rc-cefeada5"
1132011320
});
1132111321
exports.createPortal = function (children, containerTag) {
1132211322
return createPortal$1(

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<0d778c4f67b7a3562c3dae6ebc4f0c47>>
10+
* @generated SignedSource<<fed50566df9c8a05bbdea5498a51b650>>
1111
*/
1212

1313
'use strict';
@@ -10928,7 +10928,7 @@ function updateReducerImpl(hook, current, reducer) {
1092810928
var queue = hook.queue;
1092910929

1093010930
if (queue === null) {
10931-
throw new Error('Should have a queue. This is likely a bug in React. Please file an issue.');
10931+
throw new Error('Should have a queue. You are likely calling Hooks conditionally, ' + 'which is not allowed. (https://react.dev/link/invalid-hook-call)');
1093210932
}
1093310933

1093410934
queue.lastRenderedReducer = reducer; // The last rebase update that is NOT part of the base state.
@@ -11163,7 +11163,7 @@ function rerenderReducer(reducer, initialArg, init) {
1116311163
var queue = hook.queue;
1116411164

1116511165
if (queue === null) {
11166-
throw new Error('Should have a queue. This is likely a bug in React. Please file an issue.');
11166+
throw new Error('Should have a queue. You are likely calling Hooks conditionally, ' + 'which is not allowed. (https://react.dev/link/invalid-hook-call)');
1116711167
}
1116811168

1116911169
queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
@@ -26562,7 +26562,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
2656226562
return root;
2656326563
}
2656426564

26565-
var ReactVersion = '19.0.0-rc-068dfbff';
26565+
var ReactVersion = '19.0.0-rc-8955c15d';
2656626566

2656726567
/*
2656826568
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol

compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @noflow
88
* @nolint
99
* @preventMunge
10-
* @generated SignedSource<<d07de192b2df40db5d44ec6c2d08edb2>>
10+
* @generated SignedSource<<6f2aad6aeb6b6bb634ac7b24907148cf>>
1111
*/
1212

1313
"use strict";
@@ -3938,7 +3938,7 @@ function updateReducerImpl(hook, current, reducer) {
39383938
var queue = hook.queue;
39393939
if (null === queue)
39403940
throw Error(
3941-
"Should have a queue. This is likely a bug in React. Please file an issue."
3941+
"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)"
39423942
);
39433943
queue.lastRenderedReducer = reducer;
39443944
var baseQueue = hook.baseQueue,
@@ -4047,7 +4047,7 @@ function rerenderReducer(reducer) {
40474047
queue = hook.queue;
40484048
if (null === queue)
40494049
throw Error(
4050-
"Should have a queue. This is likely a bug in React. Please file an issue."
4050+
"Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)"
40514051
);
40524052
queue.lastRenderedReducer = reducer;
40534053
var dispatch = queue.dispatch,
@@ -10696,11 +10696,11 @@ function traverseOwnerTreeUp(hierarchy, instance) {
1069610696
traverseOwnerTreeUp(hierarchy, instance);
1069710697
}
1069810698
var isomorphicReactPackageVersion = React.version;
10699-
if ("19.0.0-rc-1573a96d" !== isomorphicReactPackageVersion)
10699+
if ("19.0.0-rc-2e89009b" !== isomorphicReactPackageVersion)
1070010700
throw Error(
1070110701
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
1070210702
(isomorphicReactPackageVersion +
10703-
"\n - react-native-renderer: 19.0.0-rc-1573a96d\nLearn more: https://react.dev/warnings/version-mismatch")
10703+
"\n - react-native-renderer: 19.0.0-rc-2e89009b\nLearn more: https://react.dev/warnings/version-mismatch")
1070410704
);
1070510705
if (
1070610706
"function" !==
@@ -10750,7 +10750,7 @@ var roots = new Map(),
1075010750
devToolsConfig$jscomp$inline_1192 = {
1075110751
findFiberByHostInstance: getInstanceFromTag,
1075210752
bundleType: 0,
10753-
version: "19.0.0-rc-1573a96d",
10753+
version: "19.0.0-rc-2e89009b",
1075410754
rendererPackageName: "react-native-renderer",
1075510755
rendererConfig: {
1075610756
getInspectorDataForInstance: getInspectorDataForInstance,
@@ -10793,7 +10793,7 @@ var internals$jscomp$inline_1439 = {
1079310793
scheduleRoot: null,
1079410794
setRefreshHandler: null,
1079510795
getCurrentFiber: null,
10796-
reconcilerVersion: "19.0.0-rc-1573a96d"
10796+
reconcilerVersion: "19.0.0-rc-2e89009b"
1079710797
};
1079810798
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1079910799
var hook$jscomp$inline_1440 = __REACT_DEVTOOLS_GLOBAL_HOOK__;

0 commit comments

Comments
 (0)