We're walking backwards up to the root to find the parent so that we can propagate events further up to nested React parents. If we don't find a root, that means that the tree was unmounted and we shouldn't send any events to it.
We're walking backwards up to the root to find the parent so that we can propagate events further up to nested React parents. If we don't find a root, that means that the tree was unmounted and we shouldn't send any events to it.