dioxus_lib::prelude

Function schedule_update

source
pub fn schedule_update() -> Arc<dyn Fn() + Sync + Send>
Expand description

Schedule an update for the current component

Note: Unlike needs_update, the function returned by this method will work outside of the dioxus runtime.

You should prefer schedule_update_any if you need to update multiple components.