Open obust opened 2 months ago
The current ownership model for bevy_reactor is inspired by Solid: signals, effects, and memos are entities which are owned by the TrackingScope, an ECS component which is attached to the entity for the parent effect or memo.
Unfortunately, Cx has other things in it besides a reference to the tracking scope: it has the owner entity id, and a reference to the Bevy World. The world reference is used for things like accessing resources, and is the most difficult to deal with from a borrowing/mutability standpoint. Those things are still needed, so there needs to be some mechanism for passing them in to the reactive function.
leptos managed to remove the
cx
Scope
in 0.5.0