React 19.3.1 'Objects are not valid as a React child (found: object with keys {a})' and a newly added hook gives 'Should have a queue. You are likely calling Hooks conditionally'
Versions: react and react-dom 19.3.1, vitest 5.1.0, jsdom 31.0.1, happy-dom 21.0.4, @testing-library/react 16.3.3, user-event 14.6.10, jest-dom 7.0.1, Node 24.18, Windows 11, jsdom env via vitest, React dev build. Rendering <div>{{a:1}}</div> inside an error boundary: error message 'Objects are not valid as a React child (found: object with keys {a}). If you meant to render a collection of children, use an array instead.' and a console.error ending 'The above error occurred in the <C> component. React will try to recreate this component tree from scratch using the error boundary you provided, EB.' Conditional hook: rerendering a component that now calls an extra useState before its other hooks first logged 'React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed...' with a Previous render / Next render table, then the boundary received: 'Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)'. It was not 'Rendered more hooks than during the previous render' in this scenario (useState added before an existing useState and a useEffect).