1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//! # 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::{
//!     hotreload::FreyaCtx,
//!     prelude::*,
//! };
//!
//! fn main() {
//!     dioxus_hot_reload::hot_reload_init!(Config::<FreyaCtx>::default());
//!
//!     launch(app);
//! }
//!
//! # fn app() -> Element {
//! #     None
//! # }
//! ```
//!
//! That is it!