Support hot reloading.
From library public API design looks like hot reloading could be supported by:
- Upon starting hot reload
- Remove all UI entities created by Compose from world (Could be necessary if UI code initializes dynamic objects and after hot reloading they can not be dropped correctly anymore because code that dynamic object points to doesn't exist anymore.)
- Execute library reload.
- Then normal UI construction creates the new UI.
I am currently using the same approach with egui in bevy where I delete egui memory and UI can be hot reloaded using https://github.com/rksm/hot-lib-reloader-rs crate where I define all UI code inside hot reloadable crate.
This would be very powerful feature for bevy UI development that works with ECS.
Support hot reloading.
From library public API design looks like hot reloading could be supported by:
I am currently using the same approach with egui in bevy where I delete egui memory and UI can be hot reloaded using https://github.com/rksm/hot-lib-reloader-rs crate where I define all UI code inside hot reloadable crate.
This would be very powerful feature for bevy UI development that works with ECS.