How to use the react-refresh/runtime.performReactRefresh function in react-refresh

To help you get started, we’ve selected a few react-refresh examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pmmmwh / react-refresh-webpack-plugin / src / runtime / utils.js View on Github external
refreshTimeout = setTimeout(function() {
        refreshTimeout = undefined;
        Refresh.performReactRefresh();
      }, 30);
    }
github parcel-bundler / parcel / packages / transformers / react-refresh-wrap / src / helpers / helpers.js View on Github external
var enqueueUpdate = debounce(function() {
  Refresh.performReactRefresh();
}, 30);
github pmmmwh / react-refresh-webpack-plugin / src / loader / utils / enqueueUpdate.ts View on Github external
refreshTimeout = setTimeout(() => {
        refreshTimeout = undefined;
        Refresh.performReactRefresh();
      }, 30);
    }