Fix hot reloading components with keys (#2886)
* Fix hot reloading components with keys * include component formatted segment keys, but not dynamic component value * Fix component_literal_dyn_idx index * add a new test for hot reloading components with keys * Even more tests * make clippy happy * fix typo
This commit is contained in:
1 parent
0e937daaa1
commit
4676171861
7 files changed
+176
-56
No files matched your search
@@ -320,7 +320,7 @@ impl TemplateBody {
|
||||
}
|
||||
})
|
||||
.flat_map(|component| {
|
||||
component.fields.iter().filter_map(|field| {
|
||||
component.component_props().filter_map(|field| {
|
||||
if let AttributeValue::AttrLiteral(literal) = &field.value {
|
||||
Some(literal)
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user