-
Notifications
You must be signed in to change notification settings - Fork 787
Cannot access result from mutation hoc #1842
Comments
Here is PR #1844 |
I need this badly. However, I don't think that #1844 does this right. What if there are multiple mutations in HOCs chain? I believe the right way is: |
Maybe temporary workaround is to use old |
Could you explain that a bit further? What do you mean by “old graphql”? Currently graphql uses mutation-hoc internally. |
Sorry for mixing, I mean currently |
I still don't get it, because
Can you provide an example? |
It is possible to get |
I opened new PR which only adds new prop called |
I'm aware of it, but I want this functionality included in react-apollo itself.
Again, this will fail if component is wrapped by several |
Yes you are right. It overrides when there are multiple hocs. You should also create PR for your solution. That could be the right solution. |
I am a little bit baffled as to why |
Is there any good workarounds? Or may be news on this one? |
Explanation:
FYI - In-house, we don't use the Mutation component or hoc, we just Given this explanation from a core maintainer, I'm going to close this in an effort to keep the tracker focused on actionable issues. I suspect a |
I have used
mutation-hoc
for RN Component. I can accessmutation
function however I cannot access the_result
from mutation.react-apollo/src/mutation-hoc.tsx
Line 61 in 8d06f4f
The text was updated successfully, but these errors were encountered: