dioxus_lib::prelude

Function schedule_update_any

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

Schedule an update for any component given its ScopeId.

A component’s ScopeId can be obtained from the current_scope_id method.

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