T
TanStack3y ago
absent-sapphire

Errors while using query in combination with table's subComponent ft.

Hey 👋🏽 here's a codesandbox showing the issue: https://codesandbox.io/p/devbox/subcomponentwithquery-5h5tct?embed=1&file=%2Fsrc%2Fmain.tsx%3A3%2C27 If I click on a row to open the subComponent, where a useQuery-hook is used to load a post, I get following errors:
React has detected a change in the order of Hooks called by Table. This will lead to bugs and errors if not fixed.
React has detected a change in the order of Hooks called by Table. This will lead to bugs and errors if not fixed.
I tried to reproduce the error in a sandbox. Similar code in a vite.js react app fails with:
Warning: Internal React error: Expected static flag was missing. Please notify the React team.
Warning: Internal React error: Expected static flag was missing. Please notify the React team.
Please can you help me? Thanks
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?