Skip to content

Should have a queue. This is likely a bug in React. Please file an issue #16582

@metamn

Description

@metamn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions