Compare commits

...

1 Commits

Author SHA1 Message Date
Greg Johnston
5da13f3f4e fix: maintain insertion order of meta tags 2023-05-08 07:04:37 -04:00
2 changed files with 3 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ cfg-if = "1"
leptos = { workspace = true }
tracing = "0.1"
wasm-bindgen = "0.2"
indexmap = "1"
[dependencies.web-sys]
version = "0.3"

View File

@@ -45,6 +45,7 @@
//! which mode your app is operating in.
use cfg_if::cfg_if;
use indexmap::IndexMap;
use leptos::{
leptos_dom::{debug_warn, html::AnyElement},
*,
@@ -52,7 +53,6 @@ use leptos::{
use std::{
borrow::Cow,
cell::{Cell, RefCell},
collections::HashMap,
fmt::Debug,
rc::Rc,
};
@@ -99,7 +99,7 @@ pub struct MetaTagsContext {
#[allow(clippy::type_complexity)]
els: Rc<
RefCell<
HashMap<
IndexMap<
Cow<'static, str>,
(HtmlElement<AnyElement>, Scope, Option<web_sys::Element>),
>,