From fdb8936a4c3a5ba1b1ec9cc84d35e551ce432dfb Mon Sep 17 00:00:00 2001 From: Haneen Mahdin <72091386+haneenmahd@users.noreply.github.com> Date: Mon, 15 Feb 2021 17:10:28 +0530 Subject: [PATCH] Fixed FAST_REFRESH behaviour issue #10539 In the original release log it is said that react-refresh is very unstable it shoud be set false by default. See Issue #10539 For More Details. --- packages/react-scripts/config/env.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/config/env.js b/packages/react-scripts/config/env.js index 0ad47cb9779..f677ee599d1 100644 --- a/packages/react-scripts/config/env.js +++ b/packages/react-scripts/config/env.js @@ -97,7 +97,7 @@ function getClientEnvironment(publicUrl) { // react-refresh is not 100% stable at this time, // which is why it's disabled by default. // It is defined here so it is available in the webpackHotDevClient. - FAST_REFRESH: process.env.FAST_REFRESH !== 'false', + FAST_REFRESH: process.env.FAST_REFRESH === 'true', } ); // Stringify all values so we can feed into webpack DefinePlugin