React
React should have a queue hook ordering error
React hit an internal Hook state mismatch and reported that the component is likely calling Hooks conditionally, which breaks Hook bookkeeping.
React
React hit an internal Hook state mismatch and reported that the component is likely calling Hooks conditionally, which breaks Hook bookkeeping.
Observed message
Should have a queue. You are likely calling Hooks conditionally, which is not allowed.
Why it happens
How to fix it
Official reference
React Docs: Minified React error #311Related errors
Explore more