schedule_update

Function schedule_update 

Source
pub fn schedule_update() -> Arc<dyn Fn() + Send + Sync>
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.

Note: The function returned by this method will schedule an update for the current component even if it has already updated between when schedule_update was called and when the returned function is called. If the desired behavior is to invalidate the current rendering of the current component (and no-op if already invalidated) subscribe to the current ReactiveContext instead.

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