try to keep template indexes valid

This commit is contained in:
Evan Almloff committed 2023-08-31 16:14:14 -05:00
1 parent 036e1ff0f5
commit cf04256395
4 files changed
+17 -2

No files matched your search

+4 -1
View File
@@ -318,9 +318,12 @@ pub struct VComponent<'a> {
/// The assigned Scope for this component
pub(crate) scope: Cell<Option<ScopeId>>,
/// The bubble id assigned to the child that we need to update and drop when diffing happens
pub(crate) bubble_id: Cell<Option<BubbleId>>,
/// The function pointer of the component, known at compile time
///
/// It is possible that components get folded at comppile time, so these shouldn't be really used as a key
/// It is possible that components get folded at compile time, so these shouldn't be really used as a key
pub(crate) render_fn: *const (),
pub(crate) props: RefCell<Option<Box<dyn AnyProps<'a> + 'a>>>,