-
Notifications
You must be signed in to change notification settings - Fork 787
Mutation function causes typescript error 2453 (not a valid type argument) #769
Comments
This issue has been automatically marked as stale becuase it has not had recent activity. It will be closed if not further activity occurs. Thank you for your contributions to React Apollo! |
I'm no expert, but it looks to me like the design of the react-apollo types prevents use of nested mutation and query on a component without some fakery. The definition of the A workaround, in my case, was to remove the mutation from the component's props generic parameter, and then invoke the mutation via If anyone can demonstrate successful clean use (as opposed to my hack) of nested query and mutation, please show! Wild guess: a fix might be to use different generic parameters for |
This issue has been automatically labled because it has not had recent activity. If you have not received a response from anyone, please mention the repository maintainer (most likely @jbaxleyiii). It will be closed if no further activity occurs. Thank you for your contributions to React Apollo! |
This issue has been automatically closed because it has not had recent activity after being marked as no recent activyt. If you belive this issue is still a problem or should be reopened, please reopen it! Thank you for your contributions to React Apollo! |
I'm applying Apollo's functionality on my component as follows:
This works fine as a JS file, but compiling with TypeScript results in an error:
Do I need to explicitly type things in my mutation query setup? If yes, how, and is this documented somewhere? Thanks!
Version
The text was updated successfully, but these errors were encountered: