Files
williammarch.xyz/node_modules/next/dist/esm/server/app-render/has-loading-component-in-tree.js
2026-04-02 19:13:46 +01:00

9 lines
312 B
JavaScript

export 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