Git Product home page Git Product logo

Comments (8)

devtomtom avatar devtomtom commented on August 16, 2024 2

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.

dfenerski avatar dfenerski commented on August 16, 2024

Thanks for the info! I missed the docs - sorry for that

from openui5.

dfenerski avatar dfenerski commented on August 16, 2024

@devtomtom it seems sap.ui.core.mvc.ControllerExtensions 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 avatar devtomtom commented on August 16, 2024

@devtomtom it seems sap.ui.core.mvc.ControllerExtensions are also affected, if they define async onLifecycleEvent in their override 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.

thisisevanfox avatar thisisevanfox commented on August 16, 2024

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.

  1. Error - Tiles cannot be loaded
    3-CanNotLoadTile

  2. Error - CSS is not loaded
    1-NoCss

  3. Error - Strange bar appears
    2-Bar

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.

devtomtom avatar devtomtom commented on August 16, 2024

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.

thisisevanfox avatar thisisevanfox commented on August 16, 2024

Hi @devtomtom,

see here:

I also raised an issue on me.sap.com: 377725/2024.

Kind regards,
Johannes

from openui5.

flovogt avatar flovogt commented on August 16, 2024

Closing this issue here. Further updates will be done in the SAP support incident.

from openui5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.