-
Beta Was this translation helpful? Give feedback.
Answered by
phryneas
Dec 19, 2022
Replies: 1 comment
-
You are replacing the return type of the RTKQ query hook with your own (in this case implicit) type. E.g. type MyType = { isVaultBeingFetched: true, vault: undefined } | { isVaultBeingFetched: false, vault: SomeVaultType } |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
alagunoff
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are replacing the return type of the RTKQ query hook with your own (in this case implicit) type.
If you want type behaviour like that, you will have to create a type with that behaviour and explicitly return that.
E.g.