Code Monkey home page Code Monkey logo

composer's People

Contributors

tinganho avatar

Watchers

 avatar  avatar

composer's Issues

How to resolve page lifecycle?

We currently treat one page lifecycle as:

  1. Hide contents of the current page(except for those content that should be rendered on the next page).
  2. Load the contents for the next page(exclude loading of content that are already on the current page).
  3. Remove contents of the current page.
  4. Paste content of the next page.
  5. Show content of the next page.

Though there is some side effects with this approach(All below examples results in a new URL on the address bar):

  1. What if one want to transition from one page to an another, while in the middle of the transition both page is shown side-by-side?
  2. What if we want to show a modal with content on it. Beneath it lives the current page. But we want to update the URL to reflect the new page.
  3. What if we want to show endless modal above modal views? All views

How to resolve render memory leak?

We save all the rendering and never dispose them, right now. It was just a temporary solution to deal with efficiently getting the instances of child components. But as of right now, we need to pay the debt.

Each render is stored in an array:

instantiatedComponents[renderId][componentId]

First approach was to manually dispose them. But that turned out to be too error proned can we make this more automatic?

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.