Lurker News

Comments (120) 42 threads

Show all comments

Showing thread 7 of 42

Vinnl1 reply#
That's brilliant! One suggestion I have is to prevent rerendering when changing states, e.g. when checking a checkbox, draw a checkmark without changing the shape of the actual box it's in, or when selecting a dropdown item, to not change the edges of the dropdown even if the label displayed in it changes. Probably a lot more work though :)
Diggsey1 reply#
Each component should generate a random seed on construction, and use that same seed for its entire lifetime.
shihn#
It's actually simpler than that. Most of the time it should not re-render at all. Should only re-render when the size has changed - at which point one needs to recompute anyway. I was just lazy and rendering every time.