bevy icon indicating copy to clipboard operation
bevy copied to clipboard

Run observers before hooks for `on_replace` and `on_remove`

Open nakedible opened this issue 3 months ago • 2 comments

Objective

  • Fixes #16498

Solution

  • Trivially swaps ordering of hooks and observers for all call sites where they are triggered for on_replace or on_remove

Testing

  • Just CI

Migration Guide

The order of hooks and observers for on_replace and on_remove has been swapped. Observers are now run before hooks. This is a more natural ordering where the removal ordering is inverted compared to the insertion ordering.

nakedible avatar Nov 25 '24 00:11 nakedible