Resource hooks & immutable resources (#24164)
# Objective Enables the resource derive macro to specify the attributes for - hooks (fixes #24159) - immutability (fixes #24166) Also fixes `resource_scope` overwriting change ticks and a few related doc comments. ## Showcase ```rust #[derive(Resource)] #[component(immutable)] #[component(on_insert = update_level, on_discard = update_level)] struct Level(i32); ```
M
Mira committed
ae2fcc0353d95e887470f0f6fc8a7e434e5549ce
Parent: 2d2f789
Committed by GitHub <noreply@github.com>
on 5/8/2026, 1:33:09 PM