ui-layout-manager-dev 0.0.34-dev → 0.0.35-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-layout-manager-dev",
3
- "version": "0.0.34-dev",
3
+ "version": "0.0.35-dev",
4
4
  "description": "A react component to manage layout and themes in single page applications.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -36,7 +36,9 @@ export const RootContainer = () => {
36
36
  const rootContainerAPI = useRef({});
37
37
  rootContainerAPI.current = {
38
38
  hideLoadingScreen: () => {
39
- setShowLoadingScreen(false);
39
+ if (showLoadingScreen) {
40
+ setShowLoadingScreen(false);
41
+ }
40
42
  }
41
43
  };
42
44
 
@@ -169,16 +169,15 @@ export class LayoutController {
169
169
  break;
170
170
  }
171
171
  };
172
- if (this.layoutLoaded) {
173
- // After the initial transformations have been applied, we can hide
174
- // the loading screen for the root container.
175
- this.containers[this.ldf.layoutRoot].current.hideLoadingScreen();
176
- }
177
172
  if (isInitial) {
178
173
  this.layoutLoaded = true;
179
174
  // Call root resize to apply the layout rules after initial transformations
180
175
  // are applied, this applies the layout rules to hide the containers.
181
176
  this.handleRootResize();
177
+ } else {
178
+ // After the initial transformations have been applied, we can hide
179
+ // the loading screen for the root container.
180
+ this.containers[this.ldf.layoutRoot].current.hideLoadingScreen();
182
181
  }
183
182
  });
184
183
  };