dioxus_lib::prelude

Function use_before_render

source
pub fn use_before_render(f: impl FnMut() + 'static)
Expand description

A hook that allows you to insert a “before render” function.

This function will always be called before dioxus tries to render your component. This should be used for safely handling early returns