You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are running a UI5 application with the UI5 Support Library.
For that application we defined a viewgroup setting for this application to be loaded on startup.
However, in that case, when the application is loaded in the background, the context object of the addInitListener callback is an empty object.
If the application is loaded initially in the foreground, it is working as expected.
Here is some simple example code from the component.js file:
init: function () {
// call the base component's init function
UIComponent.prototype.init.apply(this, arguments);
// enable routing
this.getRouter().initialize();
Ui5SupportLib.connectTo(this);
this.LuigiClient = Ui5SupportLib.LuigiClient;
this.LuigiClient.addInitListener((oContext) => {
console.log("Luigi Context:",oContext); // oContext === {} if loaded in the background
});
.
.
.
Expected result
The context to be available with the data, when loaded in the background as well as in foreground
Actual result
When the application is loaded in the background using viewgroup settings, the oContext object === {}
Steps to reproduce
component.js
init: function () {
// call the base component's init function
UIComponent.prototype.init.apply(this, arguments);
// enable routing
this.getRouter().initialize();
Ui5SupportLib.connectTo(this);
this.LuigiClient = Ui5SupportLib.LuigiClient;
this.LuigiClient.addInitListener((oContext) => {
console.log("Luigi Context:",oContext); // oContext === {} if loaded in the background
});
.
.
.
Description
We are running a UI5 application with the UI5 Support Library.
For that application we defined a viewgroup setting for this application to be loaded on startup.
However, in that case, when the application is loaded in the background, the context object of the addInitListener callback is an empty object.
If the application is loaded initially in the foreground, it is working as expected.
Here is some simple example code from the component.js file:
Expected result
The context to be available with the data, when loaded in the background as well as in foreground
Actual result
When the application is loaded in the background using viewgroup settings, the oContext object === {}
Steps to reproduce
component.js
Luigi Config
Load up another microfrontend and make sure, the callback of addInitListener is fired.
The text was updated successfully, but these errors were encountered: