schedule_update_any

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.

Note: It does not matter when schedule_update_any is called: the returned function will invalidate what ever generation of the specified component is current when returned function is called. If the desired behavior is to schedule invalidation of the current rendering of a component, use ReactiveContext instead.