Git Product home page Git Product logo

Comments (9)

JayCanuck avatar JayCanuck commented on May 14, 2024

For reference, what version of Enact CLI are you using? This can be seen from the enact -v command.

from enact.

webOS101 avatar webOS101 commented on May 14, 2024

Hi Gabriel, thanks for the report. Do you have some sample code that demonstrates the issue? It may be that something in the application is causing unnecessary re-rendering. On a desktop-class machine, extra renders have little impact. On an embedded system, extra renders can have a dramatic impact. Using strategies that reduce renders (shouldComponentUpdate and pure components) are important. You may want to use some of the tips contained in the Enact performance guide.

from enact.

webOS101 avatar webOS101 commented on May 14, 2024

One other tip: Using Chrome DevTools' processor slow-down feature can be useful to approximate the performance of embedded systems when developing.

from enact.

gabrieljerin avatar gabrieljerin commented on May 14, 2024

For reference, what version of Enact CLI are you using? This can be seen from the enact -v command.

Enact version: 1.2.0

from enact.

gabrieljerin avatar gabrieljerin commented on May 14, 2024

Thanks for the reply @webOS101. Let me optimize the code and recheck the performance of application. Meanwhile, could you give a suggestion or a tip to customize moonstone components?

from enact.

JayCanuck avatar JayCanuck commented on May 14, 2024

Hi @gabrieljerin , for Enact 2.x you'll want to use CLI 2.x. It includes a wide arrange of improvements over 1.2.0 and may help. Additionally, with 2.x CLI you can target particular versions of browsers using the Browserslist format.

For example, to target LG webOS TV 4.x, you could set env var BROWSERSLIST="Chrome 53" before building, then it will only transpile and polyfill the minimum requirements for Chrome 53 without added bulk/processing.

from enact.

webOS101 avatar webOS101 commented on May 14, 2024

@gabrieljerin Customization is very easy. The docs should mention the css classes you can pass in. I would suggest you visit our Enact gitter chat or open a new issue with a specific question.

from enact.

gabrieljerin avatar gabrieljerin commented on May 14, 2024

Hi @webOS101 , Is there a way to use react life cycle hooks in enact/core/kind ?

from enact.

webOS101 avatar webOS101 commented on May 14, 2024

@gabrieljerin If this issue has been resolved, can you close this ticket? If not, please provide more information. If you found your solution, it would be helpful to share it here.

from enact.

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.