Skip to content

7.2.1

Compare
Choose a tag to compare
@zenangst zenangst released this 20 Dec 22:34
· 235 commits to master since this release
43b2459

Includes one under-the-hood optimization, but it is a good one!

When Spots determines what changes between components, it will create temporary one that is used for diffing. This method previously called layoutIfNeeded on the Component's view which led to UI stuttering when working with multiple components. The stutter occurred because layoutIfNeeded is called (and has to be called) on the main thread. However, the view is never displayed on screen, hence making the layout calls unnecessary. In this new version, these calls are only made for components that are meant for screen rendering.

Merged pull requests:

  • Add needsLayout to setup() & layout() methods on Component #783 (zenangst)