ui-layout-manager-dev 0.0.31-dev → 0.0.33-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.31-dev",
3
+ "version": "0.0.33-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",
@@ -124,7 +124,7 @@ export const RootContainer = () => {
124
124
  observer.disconnect();
125
125
  }
126
126
  }
127
- }, [layoutController, setShowLoadingScreen, showLoadingScreen]);
127
+ }, [layoutController]);
128
128
 
129
129
  const sensors = useSensors(
130
130
  useSensor(PointerSensor, {
@@ -171,6 +171,8 @@ export class LayoutController {
171
171
  };
172
172
  if (isInitial) {
173
173
  this.layoutLoaded = true;
174
+ // After initial layout is applied, we can hide the loading screen.
175
+ this.containers[this.ldf.layoutRoot].current.hideLoadingScreen();
174
176
  }
175
177
  });
176
178
  };
@@ -185,8 +187,6 @@ export class LayoutController {
185
187
  case LAYOUT_WORKER_PROTOCOL.INITIALIZE_FLEXBOX:
186
188
  transformations = event.data.data;
187
189
  this.applyTransformations(transformations, true);
188
- // After initial layout is applied, we can hide the loading screen.
189
- this.containers["root"].current.hideLoadingScreen();
190
190
  break;
191
191
  case LAYOUT_WORKER_PROTOCOL.TRANSFORMATIONS:
192
192
  transformations = event.data.data;