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
Use case: I'm trying to create some methods that accept query hooks as inputs and was trying to type these methods using UseQuery, UseQueryOptions, etc. But it appears that these types are not exported, and so are not available for direct consumption.
Redux toolkit version: 1.7.1
The text was updated successfully, but these errors were encountered:
You can import those from dist, but they are not part of the currently exported types/official api because that makes refactoring pretty much impossible - and they are pretty much impossible to use either way, since they always require a full EndpointDefinition as type argument.
We will be exporting some additional types in #2276 - is that already enough to kind of support your use case?
PS: please note that you should never pass query hooks as props as that breaks the rules of hooks. Using them in a HOC would theoretically be possible.
Use case: I'm trying to create some methods that accept query hooks as inputs and was trying to type these methods using UseQuery, UseQueryOptions, etc. But it appears that these types are not exported, and so are not available for direct consumption.
Redux toolkit version: 1.7.1
The text was updated successfully, but these errors were encountered: