fix hot reloading with global and svg attibutes

This commit is contained in:
Evan Almloff committed 2022-12-22 13:52:41 -06:00
1 parent 04a923f83e
commit 776c5e8839
2 files changed
+3016 -763

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
#![allow(non_upper_case_globals)]
use crate::{map_global_attributes, map_svg_attributes};
use crate::{GlobalAttributes, SvgAttributes};
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>)> {
File diff suppressed because it is too large. Load diff