You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			19 lines
		
	
	
		
			544 B
		
	
	
	
		
			JavaScript
		
	
			
		
		
	
	
			19 lines
		
	
	
		
			544 B
		
	
	
	
		
			JavaScript
		
	
| "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
 |