fix hot reloading with global and svg attibutes
This commit is contained in:
1 parent
04a923f83e
commit
776c5e8839
2 files changed
+3016
-763
No files matched your search
@@ -1,4 +1,5 @@
|
|||||||
#![allow(non_upper_case_globals)]
|
#![allow(non_upper_case_globals)]
|
||||||
|
use crate::{map_global_attributes, map_svg_attributes};
|
||||||
use crate::{GlobalAttributes, SvgAttributes};
|
use crate::{GlobalAttributes, SvgAttributes};
|
||||||
use dioxus_rsx::HotReloadingContext;
|
use dioxus_rsx::HotReloadingContext;
|
||||||
|
|
||||||
@@ -218,7 +219,7 @@ macro_rules! builder_constructors {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
)*
|
)*
|
||||||
None
|
map_global_attributes(attribute).or_else(|| map_svg_attributes(attribute))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn map_element(element: &str) -> Option<(&'static str, Option<&'static str>)> {
|
fn map_element(element: &str) -> Option<(&'static str, Option<&'static str>)> {
|
||||||
|
|||||||
+3014
-762
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user