Relay: When working with react-native, Relay.QL is cached somewhere hidden.

Created on 7 Apr 2016  路  5Comments  路  Source: facebook/relay

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:

  • rm -rf ios/build
  • "Reset contents and settings" on iOS Simulator
  • Quit all react-native packager processes
  • rm -rf $TMPDIR/react-*

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.

Most helpful comment

Just commenting here, if someone has the same issue

react-native start --reset-cache solves the issue

All 5 comments

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rayronvictor picture rayronvictor  路  3Comments

scotmatson picture scotmatson  路  3Comments

HsuTing picture HsuTing  路  3Comments

jstejada picture jstejada  路  3Comments

sgwilym picture sgwilym  路  4Comments