fix the macro export and WIP hot reloading docs

This commit is contained in:
Evan Almloff committed 2023-01-12 08:47:33 -06:00
1 parent 19aaa0ee5b
commit 82048737f4
5 files changed
+51 -11

No files matched your search

+3 -1
View File
@@ -152,7 +152,7 @@ pub fn connect(mut f: impl FnMut(Template<'static>) + Send + 'static) {
/// Pass any number of paths to listen for changes on relative to the crate root as strings.
/// If no paths are passed, it will listen on the src and examples folders.
#[macro_export]
macro_rules! hot_reload {
macro_rules! hot_reload_init_inner {
() => {
dioxus_hot_reload::init(core::env!("CARGO_MANIFEST_DIR"), &["src", "examples"])
};
@@ -161,3 +161,5 @@ macro_rules! hot_reload {
dioxus_hot_reload::init(core::env!("CARGO_MANIFEST_DIR"), &[$($paths),*])
};
}
pub use hot_reload_init_inner as hot_reload_init;