-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expected response payload to include the newly created edge #521
Comments
listEdge
and its node
field. Did you forget to update the RANGE_ADD
mutation config?
My response from discord:
Is this a bug? I've seen a recent commit (4aef069) which should allow arguments in any order. Will that fix the issue? |
Relay will only fetch the newly created edge if some part of the application is actively querying for the range. In the gist the mutation configs include the following: {
type: 'RANGE_ADD',
parentName: 'root',
parentID: this.props.root.id,
connectionName: 'lists',
edgeName: 'listEdge',
rangeBehaviors: {
'': 'append'
}
} The new edge (field |
@josephsavona, I have StoriesPage which is a root container. Along with StoriesPage I have AddStoryPage which is also a rootContainer so when I go from StoriesPage to AddStoryPage there I do AddStoryMutation (RangeAdd on StoryConnection) which succeeds (new edge's fields match the stories connection node fields which is queried in StoriesPage) and on success I go back to StoriesPage but there the new edge has not been added unless I do full reload, shouldn't it be updating as it is the only page requesting stories connection? for rangeBehaviors I have {'' : ''} |
Thanks for your question! I have an answer for you, but… We want to make sure to keep signal strong in the GitHub issue tracker – to make sure that it remains the best place to track issues that affect the development of Relay. Questions like yours deserve a purpose-built Q&A forum. Would you like to copy/paste this question to Stack Overflow with the tag #relayjs? I'll be happy to answer there. Post a link to your Stack Overflow question here, to so that we don't lose track of it. |
Hi thanks, here is the link https://stackoverflow.com/questions/33498099/range-add-mutation-successful-not-updating-the-view |
@steveluscher Hi, I run into the same problem out of nowhere, can you tell me the answer to jwaldrip's problem? |
I am getting this error:
Can someone explain how to solve the issue of Relay not requesting an Edge object. I have seen numerous posts, but no real clear solution. Here is a gist will all the information:
https://gist.github.com/jwaldrip/a1aa07745151a6ce6add
The text was updated successfully, but these errors were encountered: