Type Definition percy_preview::Rerender

source · []
pub type Rerender = Rc<dyn FnMut()>;
Expand description

Allows the preview to trigger a rerender of itself.

For example, a preview for a component with a button that increments a counter might trigger a rerender whenever the button is clicked.