Upgrade stretch
#4
Labels
feature
New feature or request
help wanted
Extra attention is needed
improvement
An internal improvement
question
Further information is requested
Iced was built during May using the
0.2
version ofstretch
. 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.
The text was updated successfully, but these errors were encountered: