I recently upgraded MUI from 5.8.4 to 5.15.17. This broke my Autocomplete fields with multiple values option and checkbox included in the options.
I simply followed the instructions from https://mui.com/material-ui/react-autocomplete/#checkboxes.
After trying multiple things, I copy pasted the exact code from the above link and it failed with the same following reason.
I am not provided my code here since the example code itself from MUI is failing.
However, the code without Checkbox from https://mui.com/material-ui/react-autocomplete/#multiple-values works fine.
Did anybody face this issue? Is there anything I should do to fix this?
Unexpected Application Error!
Should have a queue. This is likely a bug in React. Please file an issue.
Error: Should have a queue. This is likely a bug in React. Please file an issue.
at updateReducer (http://localhost:3000/node_modules/.vite/deps/chunk-3GS3N7PG.js?v=61f98e16:11750:19)
at updateState (http://localhost:3000/node_modules/.vite/deps/chunk-3GS3N7PG.js?v=61f98e16:12041:18)
at Object.useState (http://localhost:3000/node_modules/.vite/deps/chunk-3GS3N7PG.js?v=61f98e16:12773:24)
at Object.useState (http://localhost:3000/node_modules/.vite/deps/chunk-LL6ON2IQ.js?v=61f98e16:1066:29)
at useAutocomplete (http://localhost:3000/node_modules/.vite/deps/chunk-XZS75PBB.js?v=61f98e16:1147:42)
at Autocomplete2 (http://localhost:3000/node_modules/.vite/deps/chunk-6QEGX7RH.js?v=61f98e16:940:7)
at renderWithHooks (http://localhost:3000/node_modules/.vite/deps/chunk-3GS3N7PG.js?v=61f98e16:11568:26)
at updateForwardRef (http://localhost:3000/node_modules/.vite/deps/chunk-3GS3N7PG.js?v=61f98e16:14345:28)
at beginWork (http://localhost:3000/node_modules/.vite/deps/chunk-3GS3N7PG.js?v=61f98e16:15966:22)
at beginWork$1 (http://localhost:3000/node_modules/.vite/deps/chunk-3GS3N7PG.js?v=61f98e16:19781:22)
The code without Checkbox from https://mui.com/material-ui/react-autocomplete/#multiple-values works fine. Surprisingly, this issue occurs only in debug mode. The same code in Production is not showing any error.