Fix hot reloading spreads (#2750)

This commit is contained in:
Evan Almloff authored and GitHub committed 2024-07-30 15:34:27 -07:00
1 parent 1b0d089d19
commit 74e51b7e0d
2 files changed
+24 -2

No files matched your search

+22
View File
@@ -1125,3 +1125,25 @@ fn valid_fill_empty() {
assert!(valid);
}
// We should be able to hot reload spreads
#[test]
fn valid_spread() {
let valid = can_hotreload(
quote! {
div {
..spread
}
},
quote! {
div {
"hello world"
}
h1 {
..spread
}
},
);
assert!(valid);
}