From 247cf62c8c177bec6cb23199436eb6487f9d6039 Mon Sep 17 00:00:00 2001 From: Joe Beveridge Date: Wed, 8 Jan 2020 13:18:30 -0500 Subject: [PATCH] Update the README to explain resetting cache with React Native. --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e3c3d47..e913f56 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,9 @@ In `.babelrc` file: } ``` -Each time you modify a GraphQL file, the `node_modules/.cache/babel-loader` folder must be cleared for the changes to take effect. I recommend prepending the relevant script in your `package.json` and rerunning the script when you change a GraphQL file: +Each time you modify a GraphQL file, the cache must be cleared for the changes to take effect. + +If using node then the `node_modules/.cache/babel-loader` folder must be cleared. I recommend prepending the relevant script in your `package.json` and rerunning the script when you change a GraphQL file: ```JSON { @@ -73,6 +75,12 @@ Each time you modify a GraphQL file, the `node_modules/.cache/babel-loader` fold } ``` +If using React Native then the metro cache must be reset every time you change a GraphQL file: + +``` +react-native start --reset-cache +``` + > Note: Windows users would need to use `rimraf` or another solution in place of `rm -rf`. ## Basic Usage