Comments (8)
Hi @dfenerski,
We recently allowed developers to use the async/await
syntax for listeners to control events. However, it is important to note that using async
functions within the lifecycle hooks of the framework is still restricted. With this module _enforceNoReturnValue
the framework reserves the introduction of a return type in the future. As you pointed out correctly, using async functions would already result in a return value that might conflict with such a later change.
Please see the updated ECMAScript Support page.
Also please have a look at the updated API Reference: sap.ui.core.mvc.Controller#onInit.
Best regards,
Tommy
from openui5.
Thanks for the info! I missed the docs - sorry for that
from openui5.
@devtomtom it seems sap.ui.core.mvc.ControllerExtension
s are also affected, if they define async onLifecycleEvent
in their override
section. Should they be mentioned in the support & API reference pages too?
from openui5.
@devtomtom it seems
sap.ui.core.mvc.ControllerExtension
s are also affected, if they defineasync onLifecycleEvent
in theiroverride
section. Should they be mentioned in the support & API reference pages too?
@dfenerski Good point, thanks! Yes, it definitely should be mentioned there too.
from openui5.
Hi all,
I came across this problem by chance because we are getting a similar error in our Build Workzone, standard edition Launchpad and maybe it is related.
We integrate various specially developed cloud apps and on-premise apps into the WorkZone. We are using view mode "Spaces and Pages - New Experience". For a few days now, various errors have been occurring again and again, making it almost impossible to use the Launchpad.
The Launchpad uses SAPUI5 version 1.123.1 (built at 2024-04-18T13:07).
Maybe the problem is really related and my input is somehow helpful.
I also raised an issue on me.sap.com: 377725/2024.
Kind regards,
Johannes
from openui5.
Hi @thisisevanfox,
the error messages concerning the return value of the hooks shouldn't affect your application. The same is true for the other [FUTURE FATAL]
messages... There must be other reasons for the errors described. Can you provide me the URL to the issue you reported
from openui5.
Hi @devtomtom,
see here:
I also raised an issue on me.sap.com: 377725/2024.
Kind regards,
Johannes
from openui5.
Closing this issue here. Further updates will be done in the SAP support incident.
from openui5.
Related Issues (20)
- sap.m.MultiComboBox Search for secondary values does not work HOT 3
- sap.m.DynamicDateRange: format implementation generates error logs for missing operators. HOT 2
- showClearIcon on MultiComboBox does not work HOT 4
- PlanningCalendarRow cannot be given id HOT 2
- OverviewPage Fiori Element oData V4 problem HOT 2
- Busy property doesn't work for sap.m.ColumnListItem HOT 5
- sap.m.Input control returns an error when a non-text control, such as sap.m.Avatar, is placed in the first cell. HOT 1
- [sap.ui.richtexteditor.RichTextEditor] a11y, announcement is not proper enough upon expanding the menu. HOT 1
- ODatav4 ODataContext delete does not throw upon 404. HOT 5
- sap.m.MultiInput shows suggestions when not editable HOT 1
- Strange style of active and inverted sap.m.ObjectStatus control used in sap.ui.table.Column HOT 2
- Using setModel on sap.m.table.columnmenu.Menu throws exception HOT 7
- Setting ValueState to error clears the field HOT 2
- Type 'import("sap/ui/core/Popup").Dock' is not assignable to type 'typeof Dock' using @sapui5/types: "1.126.0" HOT 3
- TypeScript / API Doc: Missing parameter for the `new sap.ui.test.Opa5()` constructor HOT 2
- Can't set CustomData to sap.m.table.columnmenu.ActionItem HOT 1
- Release Notes page in Documentation is broken HOT 1
- RadioButtonGroup - destroyButtons doesn't clear "selectedIndex" HOT 5
- Setting false to field showCounts not effective for multiple views in manifest json HOT 1
- MultiComboBox in Dialog behaving extremly weird HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openui5.