I am currently using relay together with react-native.
I have found that whenever I make a change to GraphQL schema, there is a hidden cache somewhere that needs to be manually invalidated for the Relay.QL defined for Relay containers.
I have tried these steps:
These are not enough and still causes invalid query error.
I would have to make some changes to Relay.QL fragments while running react-native packager to invalidate the hidden caches.
I am not sure if this is relay or react-native problem.
I believe this is react-native issue. Closing the issue until proven otherwise.
Just commenting here, if someone has the same issue
react-native start --reset-cache solves the issue
@joonhocho how did u solve ur problem?
@sibelius Yes, your answer worked for me!
@sibelius You're awesome!
Most helpful comment
Just commenting here, if someone has the same issue
react-native start --reset-cachesolves the issue