2
0
Fork 0
mirror of https://github.com/DioxusLabs/dioxus synced 2025-02-19 23:28:27 +00:00

fix hot reloading with global and svg attibutes

This commit is contained in:
Evan Almloff 2022-12-22 13:52:41 -06:00
parent 04a923f83e
commit 776c5e8839
2 changed files with 3016 additions and 763 deletions

View file

@ -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>)> {

File diff suppressed because it is too large Load diff