You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everything worked fine in v4 but after updating in v5, I have this typescript error :
error TS2742: The inferred type of 'useSearchContext' cannot be named without a reference to '../../../node_modules/@tanstack/react-query/build/modern/types'. This is likely not portable. A type annotation is necessary
To avoid the error, I have to declare the return type as below :
Describe the bug
Hello !
I have a bunch of React Query v5 Queries and Mutations exported as custom hooks:
Everything worked fine in v4 but after updating in v5, I have this typescript error :
To avoid the error, I have to declare the return type as below :
For info, I'm using React Query
5.8.4
and I mentioned the issue here : TanStack/query#6670I used this in our ui library and it worked...
But it is not working on our app
explorer
Any help ?
Reproduction
https://github.com/opendigitaleducation/explorer/tree/dev/frontend
Steps to reproduce
System Info
Validations
The text was updated successfully, but these errors were encountered: