barneycarroll / mithril-machine-tools

Putting the hype back in hyperscript, the OM back in virtual DOM; A bag of tricks for Mithril.
MIT License
30 stars 3 forks source link

Link to flems for sample usage #4

Open pygy opened 6 years ago

pygy commented 6 years ago

Until you get the time to write real docs, it would be nice to add flems links in the README with sample usage.

pygy commented 6 years ago

Turning this into an Island may be a nice example (self-contained, updated often).

Edit: updated the timing a bit for better emulate the original (pauses at both ends of the phases).

Edit2: actually, maybe not... There's a lot of code that's not Island-related, and it muddles the demo.

barneycarroll commented 3 years ago

This is about a high frequency subtree localised redraw, right? Island may yet make it into the release … Are were saying 👇 ?

m(Island, localRedraw => 
  m('div', {onclick: () => (
    demanding(),
    localRedraw(),
    false 
  )}),
)