Relay mutation expects data fetched by Relay

前端 未结 2 430
忘了有多久
忘了有多久 2020-12-31 06:39

I have two Relay mutations that I\'m nesting to first add an object then set its name. I believe what I\'m passing to the second mutation is in fact data fetched by Relay, b

2条回答
  •  情书的邮戳
    2020-12-31 07:42

    Relay expects any fragments for your mutation to come from your props. Since you're using data coming from your callback and not something from your container props Relay raises that warning.

    Take a look at the source: https://github.com/facebook/relay/blob/master/src/mutation/RelayMutation.js#L289-L307

提交回复
热议问题