Function connect

Source
pub fn connect(callback: impl FnMut(HotReloadMsg) + Send + 'static)
Expand description

Connect to the hot reloading listener. The callback provided will be called every time a template change is detected