Remove boxedanyprops abstraction

This commit is contained in:
Jonathan Kelley committed 2024-01-16 16:09:59 -08:00
1 parent fb4f97406c
commit 9f595171ce
4 files changed
+9 -37

No files matched your search

+2 -2
View File
@@ -88,7 +88,7 @@ impl VNode {
}
// First, move over the props from the old to the new, dropping old props in the process
dom.scopes[scope_id.0].props = new.props.clone();
dom.scopes[scope_id.0].props = new.props.duplicate();
// Now run the component and diff it
let new = dom.run_scope(scope_id);
@@ -129,7 +129,7 @@ impl VNode {
) -> usize {
// Load up a ScopeId for this vcomponent. If it's already mounted, then we can just use that
let scope = dom
.new_scope(component.props.clone(), component.name)
.new_scope(component.props.duplicate(), component.name)
.context()
.id;