fix borrowed props with temp values

This commit is contained in:
Evan Almloff committed 2023-08-12 19:19:46 -05:00
1 parent bdfb3b6285
commit d559fdaeab
4 files changed
+40 -1

No files matched your search

+3 -1
View File
@@ -424,7 +424,9 @@ impl<'src> ScopeState {
fn_name: &'static str,
) -> DynamicNode<'src>
where
P: Properties + 'child,
// The properties must be valid until the next bump frame
P: Properties + 'src,
// The current bump allocator frame must outlive the child's borrowed props
'src: 'child,
{
let vcomp = VProps::new(component, P::memoize, props);