Skip to content

Hot reloading support #95

Description

@PPakalns

Support hot reloading.

From library public API design looks like hot reloading could be supported by:

  1. Upon starting hot reload
    1. 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.)
    2. Execute library reload.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions