[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 Géry Debongnie
parent 345c44b952
commit bdfe058279
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;