We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96713ac commit ecfdb76Copy full SHA for ecfdb76
packages/react-dev-utils/webpackHotDevClient.js
@@ -243,7 +243,8 @@ function tryApplyUpdates(onHotUpdateSuccess) {
243
}
244
245
function handleApplyUpdates(err, updatedModules) {
246
- const hasReactRefresh = process.env.FAST_REFRESH !== 'false';
+ // NOTE: This var is injected by Webpack's DefinePlugin, and is a boolean instead of string.
247
+ const hasReactRefresh = process.env.FAST_REFRESH;
248
const wantsForcedReload = err || !updatedModules || hadRuntimeError;
249
// React refresh can handle hot-reloading over errors.
250
if (!hasReactRefresh && wantsForcedReload) {
0 commit comments