Skip to content

Commit

Permalink
Tweak error message for "Should have a queue" (#29626)
Browse files Browse the repository at this point in the history
DiffTrain build for [38e3b23](38e3b23)
  • Loading branch information
sophiebits committed May 29, 2024
1 parent e5c63ba commit 431d10b
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
163122766b6008e992898b00f1fe3b104ed78737
38e3b23483bf7a612391cd617a8926aa1f3cf52e
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactART-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function _assertThisInitialized(self) {
return self;
}

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

var LegacyRoot = 0;
var ConcurrentRoot = 1;
Expand Down Expand Up @@ -8665,7 +8665,7 @@ function updateReducerImpl(hook, current, reducer) {
var queue = hook.queue;

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

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

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

queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactART-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function _assertThisInitialized(self) {
return self;
}

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

var LegacyRoot = 0;
var ConcurrentRoot = 1;
Expand Down Expand Up @@ -8454,7 +8454,7 @@ function updateReducerImpl(hook, current, reducer) {
var queue = hook.queue;

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

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

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

queue.lastRenderedReducer = reducer; // This is a re-render. Apply the new render phase updates to the previous
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOM-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -12340,7 +12340,7 @@ function updateReducerImpl(hook, current, reducer) {
var queue = hook.queue;

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

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

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

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

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

function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOM-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -12081,7 +12081,7 @@ function updateReducerImpl(hook, current, reducer) {
var queue = hook.queue;

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

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

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

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

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

function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOMTesting-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -12481,7 +12481,7 @@ function updateReducerImpl(hook, current, reducer) {
var queue = hook.queue;

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

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

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

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

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

function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOMTesting-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -12222,7 +12222,7 @@ function updateReducerImpl(hook, current, reducer) {
var queue = hook.queue;

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

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

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

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

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

function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactReconciler-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -9241,7 +9241,7 @@ function updateReducerImpl(hook, current, reducer) {
var queue = hook.queue;

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

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

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

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

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

/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactReconciler-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -9032,7 +9032,7 @@ function updateReducerImpl(hook, current, reducer) {
var queue = hook.queue;

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

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

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

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

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

/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactTestRenderer-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -7796,7 +7796,7 @@ function updateReducerImpl(hook, current, reducer) {
var queue = hook.queue;

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

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

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

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

var ReactVersion = '19.0.0-www-classic-e790cf72';
var ReactVersion = '19.0.0-www-classic-dd5f1896';

/*
* The `'' + value` pattern (used in perf-sensitive code) throws for Symbol
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactTestRenderer-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -7796,7 +7796,7 @@ function updateReducerImpl(hook, current, reducer) {
var queue = hook.queue;

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

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

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

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

var ReactVersion = '19.0.0-www-modern-e790cf72';
var ReactVersion = '19.0.0-www-modern-dd5f1896';

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

0 comments on commit 431d10b

Please sign in to comment.