MCPcopy Index your code
hub / github.com/react/create-react-app / hotCheck

Function hotCheck

packages/react-error-overlay/fixtures/bundle.mjs:220–253  ·  view source on GitHub ↗
(apply)

Source from the content-addressed store, hash-verified

218/******/ }
219/******/
220/******/ function hotCheck(apply) {
221/******/ if(hotStatus !== "idle") throw new Error("check() is only allowed in idle status");
222/******/ hotApplyOnUpdate = apply;
223/******/ hotSetStatus("check");
224/******/ return hotDownloadManifest().then(function(update) {
225/******/ if(!update) {
226/******/ hotSetStatus("idle");
227/******/ return null;
228/******/ }
229/******/
230/******/ hotRequestedFilesMap = {};
231/******/ hotWaitingFilesMap = {};
232/******/ hotAvailableFilesMap = update.c;
233/******/ hotUpdateNewHash = update.h;
234/******/
235/******/ hotSetStatus("prepare");
236/******/ var promise = new Promise(function(resolve, reject) {
237/******/ hotDeferred = {
238/******/ resolve: resolve,
239/******/ reject: reject
240/******/ };
241/******/ });
242/******/ hotUpdate = {};
243/******/ var chunkId = 0;
244/******/ { // eslint-disable-line no-lone-blocks
245/******/ /*globals chunkId */
246/******/ hotEnsureUpdateChunk(chunkId);
247/******/ }
248/******/ if(hotStatus === "prepare" && hotChunksLoading === 0 && hotWaitingFiles === 0) {
249/******/ hotUpdateDownloaded();
250/******/ }
251/******/ return promise;
252/******/ });
253/******/ }
254/******/
255/******/ function hotAddUpdateChunk(chunkId, moreModules) { // eslint-disable-line no-unused-vars
256/******/ if(!hotAvailableFilesMap[chunkId] || !hotRequestedFilesMap[chunkId])

Callers

nothing calls this directly

Calls 4

hotSetStatusFunction · 0.70
hotDownloadManifestFunction · 0.70
hotEnsureUpdateChunkFunction · 0.70
hotUpdateDownloadedFunction · 0.70

Tested by

no test coverage detected