Initial boiler plate project
This commit is contained in:
19
node_modules/next/dist/server/app-render/has-loading-component-in-tree.js
generated
vendored
Normal file
19
node_modules/next/dist/server/app-render/has-loading-component-in-tree.js
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "hasLoadingComponentInTree", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return hasLoadingComponentInTree;
|
||||
}
|
||||
});
|
||||
function hasLoadingComponentInTree(tree) {
|
||||
const [, parallelRoutes, { loading }] = tree;
|
||||
if (loading) {
|
||||
return true;
|
||||
}
|
||||
return Object.values(parallelRoutes).some((parallelRoute)=>hasLoadingComponentInTree(parallelRoute));
|
||||
}
|
||||
|
||||
//# sourceMappingURL=has-loading-component-in-tree.js.map
|
||||
Reference in New Issue
Block a user