• Hixie's avatar
    Change how we decide if two nodes can sync. · 5125bd5d
    Hixie authored
    If it's a StatefulComponent, then it's ok to reuse it so long as it
    hasn't been initialised.
    
    If it's a regular Component or a TagNode, then it's always ok to reuse.
    
    If it's a RenderObjectWrapper, then it's ok to reuse so long as it
    doesn't have a renderObject.
    
    To put it another way, this changes how we prevent the following
    nonsensical situations from arising:
    
     - Sync two stateful StatefulComponents together
     - Sync two RenderObjectWrappers with RenderObjects together
    
    When either of those cases happen, we just drop the old one on the
    ground and use the new one unchanged.
    5125bd5d
Name
Last commit
Last update
..
gestures Loading commit data...
mojo Loading commit data...
src Loading commit data...
theme Loading commit data...
README.md Loading commit data...
animation.dart Loading commit data...
painting.dart Loading commit data...
rendering.dart Loading commit data...
sky_tool Loading commit data...
widgets.dart Loading commit data...