Skip to content

Commit 431d10b

Browse files
committed
Tweak error message for "Should have a queue" (#29626)
DiffTrain build for [38e3b23](38e3b23)
1 parent e5c63ba commit 431d10b

11 files changed

+31
-31
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
163122766b6008e992898b00f1fe3b104ed78737
1+
38e3b23483bf7a612391cd617a8926aa1f3cf52e

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function _assertThisInitialized(self) {
6060
return self;
6161
}
6262

63-
var ReactVersion = '19.0.0-www-classic-15a88fe3';
63+
var ReactVersion = '19.0.0-www-classic-e2e1fbaf';
6464

6565
var LegacyRoot = 0;
6666
var ConcurrentRoot = 1;
@@ -8665,7 +8665,7 @@ function updateReducerImpl(hook, current, reducer) {
86658665
var queue = hook.queue;
86668666

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

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

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

89068906
queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function _assertThisInitialized(self) {
6060
return self;
6161
}
6262

63-
var ReactVersion = '19.0.0-www-modern-3e83ee0c';
63+
var ReactVersion = '19.0.0-www-modern-05c03f69';
6464

6565
var LegacyRoot = 0;
6666
var ConcurrentRoot = 1;
@@ -8454,7 +8454,7 @@ function updateReducerImpl(hook, current, reducer) {
84548454
var queue = hook.queue;
84558455

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

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

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

86958695
queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous

compiled/facebook-www/ReactDOM-dev.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12340,7 +12340,7 @@ function updateReducerImpl(hook, current, reducer) {
1234012340
var queue = hook.queue;
1234112341

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

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

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

1258112581
queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
@@ -31059,7 +31059,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
3105931059
return root;
3106031060
}
3106131061

31062-
var ReactVersion = '19.0.0-www-classic-8bd79cb3';
31062+
var ReactVersion = '19.0.0-www-classic-b0252694';
3106331063

3106431064
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
3106531065
implementation) {

compiled/facebook-www/ReactDOM-dev.modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12081,7 +12081,7 @@ function updateReducerImpl(hook, current, reducer) {
1208112081
var queue = hook.queue;
1208212082

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

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

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

1232212322
queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
@@ -30236,7 +30236,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
3023630236
return root;
3023730237
}
3023830238

30239-
var ReactVersion = '19.0.0-www-modern-c9475fbe';
30239+
var ReactVersion = '19.0.0-www-modern-4c2e3832';
3024030240

3024130241
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
3024230242
implementation) {

compiled/facebook-www/ReactDOMTesting-dev.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12481,7 +12481,7 @@ function updateReducerImpl(hook, current, reducer) {
1248112481
var queue = hook.queue;
1248212482

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

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

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

1272212722
queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
@@ -31625,7 +31625,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
3162531625
return root;
3162631626
}
3162731627

31628-
var ReactVersion = '19.0.0-www-classic-bde9b62b';
31628+
var ReactVersion = '19.0.0-www-classic-897ea709';
3162931629

3163031630
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
3163131631
implementation) {

compiled/facebook-www/ReactDOMTesting-dev.modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12222,7 +12222,7 @@ function updateReducerImpl(hook, current, reducer) {
1222212222
var queue = hook.queue;
1222312223

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

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

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

1246312463
queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
@@ -30802,7 +30802,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
3080230802
return root;
3080330803
}
3080430804

30805-
var ReactVersion = '19.0.0-www-modern-e457b687';
30805+
var ReactVersion = '19.0.0-www-modern-8ac3e0b0';
3080630806

3080730807
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
3080830808
implementation) {

compiled/facebook-www/ReactReconciler-dev.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9241,7 +9241,7 @@ function updateReducerImpl(hook, current, reducer) {
92419241
var queue = hook.queue;
92429242

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

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

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

94829482
queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
@@ -28827,7 +28827,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
2882728827
return root;
2882828828
}
2882928829

28830-
var ReactVersion = '19.0.0-www-classic-0f2e436b';
28830+
var ReactVersion = '19.0.0-www-classic-248d5d57';
2883128831

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

compiled/facebook-www/ReactReconciler-dev.modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9032,7 +9032,7 @@ function updateReducerImpl(hook, current, reducer) {
90329032
var queue = hook.queue;
90339033

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

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

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

92739273
queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
@@ -28095,7 +28095,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
2809528095
return root;
2809628096
}
2809728097

28098-
var ReactVersion = '19.0.0-www-modern-39d9b5d6';
28098+
var ReactVersion = '19.0.0-www-modern-95d7bd22';
2809928099

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

compiled/facebook-www/ReactTestRenderer-dev.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7796,7 +7796,7 @@ function updateReducerImpl(hook, current, reducer) {
77967796
var queue = hook.queue;
77977797

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

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

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

80378037
queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
@@ -23313,7 +23313,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
2331323313
return root;
2331423314
}
2331523315

23316-
var ReactVersion = '19.0.0-www-classic-e790cf72';
23316+
var ReactVersion = '19.0.0-www-classic-dd5f1896';
2331723317

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

0 commit comments

Comments
 (0)