1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//! # Hot reload
//!
//! Freya supports Dioxus hot reload, which means that you can update the `layout` and `styling` of your app on the fly, without having to recompile your project.
//!
//! ## Setup
//!
//! Before launching your app, you need to initialize the hot-reload context:
//!
//! ```rust, no_run
//! use freya::prelude::*;
//! use freya::hotreload::FreyaCtx;
//!
//! fn main() {
//!     dioxus_hot_reload::hot_reload_init!(Config::<FreyaCtx>::default());
//!
//!     launch(app);
//! }
//!
//! # fn app(cx: Scope) -> Element {
//! #     None
//! # }
//! ```
//!
//! That is it!