react-refresh support/replacement for react-hot-loader
I'm using react-universal-component in multiple gatsby.js projects. Current version of gatsby.js made switch from hot-reload to better supported by React react-refresh
I've updating the codebase, and stumble upon yarn install warning:
warning "react-universal-component > [email protected]" has unmet peer dependency "@types/react@^15.0.0 || ^16.0.0".
And I got curious if it react-hot-loader dependency of react-universal-component could break or conflict with react-refresh some way.
PS: I do not care much about @types/react missing peer dependency, as @types/react-dom has it as direct dependency.
AFAICS react-hot-loader is not actually used in the source code, so I'm not sure why it's listed as a dependency. It was added in https://github.com/faceyspacey/react-universal-component/commit/3c21ffa45c7bd9cc9dca5066243ecbcda004ad2a#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R97.