babel-relay-plugin-loader icon indicating copy to clipboard operation
babel-relay-plugin-loader copied to clipboard

Schema changes aren't reloaded

Open mmelitzer opened this issue 8 years ago • 6 comments

Great job, works really well but if I update the schema the changes aren't reflected in the react-native app without clearing the cache and restarting. Using the graphiql editor I get the changes instantly after rebuilding the schema and refreshing the page. Is there anything I can specify to observe schema changes and trigger a recompile?

mmelitzer avatar Jun 02 '16 16:06 mmelitzer

mmh, sorry, I haven't tried yet with react-native. Since this is just a plugin for babel I guess you have to refer to your build system to find out which files to monitor. Maybe somebody else has experience with this?

BerndWessels avatar Jun 03 '16 03:06 BerndWessels

same issue here. I tried cleaning the project, watchman watch-del-all but still can't get it to work

hiaw avatar Sep 01 '16 00:09 hiaw

Finally managed to figure it out. npm cache clean is your friend

hiaw avatar Sep 01 '16 00:09 hiaw

the issue is not related to this project I believe here are the steps to eliminate the issue

  1. open new console window
  2. rebuild schema in new console window
  3. should work now :)

navasiloy avatar Nov 09 '16 22:11 navasiloy

Same issue, none of the above are working :(. I can see the "missing" fields in the schema json and when using graphiql browser.

tim-field avatar Mar 02 '17 02:03 tim-field

you are right I got it working in another way

you should go to your React component and add just one additional field in the query ("no matter which one") restart the server

than should work

navasiloy avatar Mar 02 '17 11:03 navasiloy