create project
This commit is contained in:
29
kitabcitab/node_modules/next/dist/client/components/infinite-promise.js
generated
vendored
Normal file
29
kitabcitab/node_modules/next/dist/client/components/infinite-promise.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.createInfinitePromise = createInfinitePromise;
|
||||
/**
|
||||
* Used to cache in createInfinitePromise
|
||||
*/ let infinitePromise;
|
||||
function createInfinitePromise() {
|
||||
if (!infinitePromise) {
|
||||
// Only create the Promise once
|
||||
infinitePromise = new Promise(()=>{
|
||||
// This is used to debug when the rendering is never updated.
|
||||
// setTimeout(() => {
|
||||
// infinitePromise = new Error('Infinite promise')
|
||||
// resolve()
|
||||
// }, 5000)
|
||||
});
|
||||
}
|
||||
return infinitePromise;
|
||||
}
|
||||
|
||||
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
|
||||
Object.defineProperty(exports.default, '__esModule', { value: true });
|
||||
Object.assign(exports.default, exports);
|
||||
module.exports = exports.default;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=infinite-promise.js.map
|
||||
Reference in New Issue
Block a user