-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Iced was built during May using the 0.2
version of stretch
. It seems that a new minor version was released recently, in July. We should consider upgrading.
At a first glance, the API has changed somewhat considerably. There is a new Stretch
type that you have to keep around and mutate accordingly. I am guessing this allows (or will allow) for incremental computation of layouting, which is great!
However, in order to mutate the Stretch
type and keep it in sync, we will need to implement a diffing strategy of nodes. This is mostly a solved problem, as React and Elm already do it, but some research will certainly be necessary and we will probably need to change the API a bit.
Also, as a naive first approach, we could simply recreate the Stretch
type entirely every time.
In any case, benchmarking before upgrading is a good idea.