entria / ReactNavigationRelayModern

React Navigation integration with Relay
173 stars 23 forks source link

Undefined method commitUpdate() on RelayStore #6

Closed danielfttorres closed 7 years ago

danielfttorres commented 7 years ago

When I try to access commitUpdate() method using this.props.relay.commitUpdate(), this is undefined on RelayStore.js#93 because this._env not exists.

screen shot 2017-04-22 at 7 45 52 pm

danielfttorres commented 7 years ago

The solution is call the commitUpdate() method according the template of create-GraphQL, by using commitUpdate() through RelayStore instead of this.props.