-
Notifications
You must be signed in to change notification settings - Fork 50k
Description
Do you want to request a feature or report a bug?
Report a bug.
What is the current behavior?
I've received this message: "Should have a queue. This is likely a bug in React. Please file an issue."
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:
Tried to reproduce in Sandbox but was unsuccessful: https://codesandbox.io/s/admiring-mayer-2uiiu
Please checkout this repo frozen with this bug above: https://github.com/metamn/react-best-practices/releases/tag/v0.0.1
The bug appeared after adding useMemo in src/components/PlaceholderText/PlaceholderText.js
/**
* Generates the text rows
*/
const textRows = useMemo(
() =>
[...Array(numberOfRows)].map(i => {
/**
* Generates a random uuid
*/
const id = uuid.v4();
return {
id: id,
text: textRow
};
}),
[numberOfRows, textRow]
);
What is the expected behavior?
To render the component as usual
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
react": "^16.9.0
Firefox 68.0.2 (64-bit) Ubuntu
Ubuntu 18.04.3 LTS