Page Erorr on trying to live query a tanstack db collection (tanstack start)
the code is a little more than to fit here so here a github gist link
https://gist.github.com/Bukharee/eed62369e19baef3013caf603f3833bd
but when i open tha page in the browser i get
Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.
i cant figure out where things went wrong
cc: @Manuel Schiller or anyone on the tanstack db team
https://gist.github.com/Bukharee/eed62369e19baef3013caf603f3833bd
but when i open tha page in the browser i get
Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.
i cant figure out where things went wrong
cc: @Manuel Schiller or anyone on the tanstack db team
Gist
Tanstack start and db problem . GitHub Gist: instantly share code, notes, and snippets.

