mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
3717b71c64
During the deletion phase we call detachRefs on any deleted refs. During the insertion/update phase we call attachRef on class and host components. Unfortunately, when a ref switches, we are supposed to call all the unmounts before doing any mounts. This means that we have to expact the deletion phase to also include updates in case they need to detach their ref.