Skip to content

Commit

Permalink
Merge pull request #74 from josephmbeveridge/update-readme-react-nati…
Browse files Browse the repository at this point in the history
…ve-caches

Update the README to explain resetting cache with React Native.
  • Loading branch information
detrohutt authored Sep 14, 2020
2 parents 6ec86b8 + 247cf62 commit 3327caa
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
Expand Down

0 comments on commit 3327caa

Please # to comment.