Skip to content

How to get RTKq interfaces ? #3615

Answered by EskiMojo14
Dovakeidy asked this question in Q&A
Discussion options

You must be logged in to vote

There are types exported from RTKQ's react module to help with this kind of thing, called TypedUseQueryHookResult and TypedUseMutationResult.

With that said, this usage seems to break the rules of hooks? To my knowledge you shouldn't ever pass a hook directly to another hook.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Dovakeidy
Comment options

@EskiMojo14
Comment options

@Dovakeidy
Comment options

Answer selected by Dovakeidy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants