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
{{ message }}
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
In my codebase, I have a scenario where I'm wrapping a form with three Apollo higher-order components: one to load the data shown in the form, one to add an edit mutation, and one to add a remove mutation.
This means that when using the React inspector, I end up with something that looks like:
<Apollo(Apollo(Apollo(withLoader(Form))))>
My suggestion would be to add an alias option to the graphql function's config argument so that you're able to get something like:
In my codebase, I have a scenario where I'm wrapping a form with three Apollo higher-order components: one to load the data shown in the form, one to add an
edit
mutation, and one to add aremove
mutation.This means that when using the React inspector, I end up with something that looks like:
My suggestion would be to add an
alias
option to thegraphql
function'sconfig
argument so that you're able to get something like:Here's where the change would take place:
https://github.com/SachaG/react-apollo/blob/master/src/graphql.tsx#L147
The text was updated successfully, but these errors were encountered: