How to configure metro to hot reload when source in node_modules/mypackage change?
- Dominant language
- C++
- Stars
- 13.7k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
In a react native application, I am using the following `metro.config.js` to support symlink: https://github.com/react-native-community/cli/issues/1238#issue-673055870
Symlink works fine and I can see when I update the source `Refreshing` being displayed on my screen.
However, the source is still the old one, I must restart metro process and the application in order to really see the changes.
How can I configure metro to hot reload change from within my linked modules?
This is what I have in `watchFolders` metro option:
```bash
['/home/dka/.config/yarn/link/@pass-culture/id-check']
```
This is what I have when I run `watchman watch-list`:
```bash
watchman watch-list
{
"version": "20210124.162314.0",
"roots": [
"/home/dka/workspace/github.com/pass-culture/id-check-front/packages/id-check",
"/home/dka/workspace/github.com/pass-culture/pass-culture-app-native"
]
}
```
Thanks for helping
Contributor guide
Assessment
This issue has not been assessed yet.