Bug: clicking a material ui button with preact signals present crashes react with Uncaught Error: Should have a queue. This is likely a bug in React. Please file an issue. #26704
Labels
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
When there are preact signals (
@preact/signals-react
) and a Material UI button (or any MUI element with the ripple animation on it) is clicked, React crashes with the errors:Uncaught Error: Should have a queue. This is likely a bug in React. Please file an issue.
. I have included a screenshot of the errors and a link to a codesandbox with a replication of the error.Its the ripple animation on Material UI elements that seems to be involved in the crash. Disabling the ripple animation makes the button work and React does not crash. The ripple animation only crashes React when preact signals are present. Its a combined issue between React, MUI, and Preact signals.
If this issue is not because of React or a React bug, it would be very helpful if someone could help me figure out what's causing it so I can report it to the correct place (ie. MUI or Preact signals)
React version: 18.2.0
Steps To Reproduce
Link to code example: https://codesandbox.io/s/react-crash-replication-o24v4p?file=/src/App.tsx
The current behavior
React crashes
The expected behavior
React doesnt crash
The text was updated successfully, but these errors were encountered: