Skip to content

Commit

Permalink
AddAnyAttr working with erase_components (#3518)
Browse files Browse the repository at this point in the history
* AddAnyAttr working with erase_components

* CI fixes
  • Loading branch information
zakstucke authored Jan 26, 2025
1 parent b62ae56 commit 72f960a
Show file tree
Hide file tree
Showing 23 changed files with 717 additions and 275 deletions.
8 changes: 8 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion leptos_macro/src/view/component_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ pub(crate) fn component_to_tokens(

let spreads = (!(spreads.is_empty())).then(|| {
quote! {
.add_any_attr((#(#spreads,)*))
.add_any_attr((#(#spreads,)*).into_attr())
}
});

Expand Down
8 changes: 7 additions & 1 deletion tachys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ reactive_graph = { workspace = true, optional = true }
reactive_stores = { workspace = true, optional = true }
slotmap = { version = "1.0", optional = true }
oco_ref = { workspace = true, optional = true }
async-trait = "0.1.81"
dyn-clone = "1.0.17"
once_cell = "1.20"
paste = "1.0"
wasm-bindgen = "0.2.97"
Expand Down Expand Up @@ -198,4 +200,8 @@ skip_feature_sets = [
]

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(leptos_debuginfo)'] }
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(leptos_debuginfo)',
'cfg(erase_components)',
] }

Loading

0 comments on commit 72f960a

Please sign in to comment.