wishawa / async_ui

Lifetime-Friendly, Component-Based, Retained-Mode UI Powered by Async Rust
Mozilla Public License 2.0
551 stars 11 forks source link

How do you remove an element dynamically ? #1

Open X-Ryl669 opened 1 year ago

X-Ryl669 commented 1 year ago

As the title asks.

wishawa commented 1 year ago

Hi! When a Future gets dropped, all the widgets it renders are unmounted.

To drop a future, race it with another future that will complete faster. See the examples/gtk-login-form for example.