yjbanov / butterfly

A web framework for Dart based on Flutter's widget model
Apache License 2.0
157 stars 13 forks source link

Replace ElementUpdate object with Element reference #33

Closed jonahwilliams closed 6 years ago

jonahwilliams commented 6 years ago

Instead of creating a generic ElementUpdate description object, the render nodes should take a reference to the parent (host) DOM element. This would also remove the need for a pure js sync-er script, and also remove the ability to run on the VM.

Some notable advantages:

Open questions

jonahwilliams commented 6 years ago

Regarding incremental-dom, I did some prototyping (in JS) with the library. There is a bit of overlap in functionality, but it might allow reducing the amount of work we do in RenderNodes.

https://gist.github.com/jonahwilliams/71d22c88b84f35b247584f6308efbc00

jonahwilliams commented 6 years ago

Fixed by #34