request_rerender

Function request_rerender 

Source
pub fn request_rerender()
Expand description

Marks the current UI as needing rerender

This method is used to explicitly trigger UI rerendering. In certain scenarios, when external business logic updates the state but cannot trigger rendering through the normal action flow, this method can be called to notify the rendering loop to update.

§Use Cases

  • Update UI after async operations complete
  • State changes in external event listeners
  • Manual state updates that need to be synced to DOM

§Notes

This is a low-overhead operation. If already marked as needing render, repeated calls will not incur additional cost.