-
|
My code used to work but now not working after updated from react-query v1.5.7 to v3.5.11. The broken part is the way to pass function parameters. e.g. I used to be able to do this to pass the id as parameter in useQuery hook: The But now, same code yields |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
in v3, the query key is no longer spread into the queryFn. please see the upgrade guide: https://react-query.tanstack.com/guides/migrating-to-react-query-3 |
Beta Was this translation helpful? Give feedback.
in v3, the query key is no longer spread into the queryFn. please see the upgrade guide: https://react-query.tanstack.com/guides/migrating-to-react-query-3