[IMP] reactivity: overhaul reactivity system

This commit makes the reactivity system more fine grained and makes it
more eager to stop observing keys or objects when they are modified,
this results in fewer "false positive" notifications.
This commit is contained in:
Samuel Degueldre
2021-11-15 09:41:23 +01:00
committed by Aaron Bohy
parent 5d4a38ad0f
commit a400fc5e69
5 changed files with 751 additions and 703 deletions
+3 -1
View File
@@ -72,7 +72,9 @@ export function getCurrent(): ComponentNode | null {
type LifecycleHook = Function;
export class ComponentNode<T extends typeof Component = any> implements VNode<ComponentNode> {
export class ComponentNode<T extends typeof Component = typeof Component>
implements VNode<ComponentNode>
{
el?: HTMLElement | Text | undefined;
app: App;
fiber: Fiber | null = null;