babel-relay-plugin-loader
babel-relay-plugin-loader copied to clipboard
Schema changes aren't reloaded
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?
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?
same issue here. I tried cleaning the project, watchman watch-del-all
but still can't get it to work
Finally managed to figure it out. npm cache clean
is your friend
the issue is not related to this project I believe here are the steps to eliminate the issue
- open new console window
- rebuild schema in new console window
- should work now :)
Same issue, none of the above are working :(. I can see the "missing" fields in the schema json and when using graphiql browser.
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