reactronic 0.24.500 → 0.24.501
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -73,7 +73,7 @@ export type ReactiveNodeDriver<E = unknown> = {
|
|
|
73
73
|
readonly name: string;
|
|
74
74
|
readonly isPartition: boolean;
|
|
75
75
|
readonly initialize?: Handler<E>;
|
|
76
|
-
|
|
76
|
+
create(node: ReactiveNode<E>): E;
|
|
77
77
|
prepare(node: ReactiveNode<E>): void;
|
|
78
78
|
finalize(node: ReactiveNode<E>, isLeader: boolean): boolean;
|
|
79
79
|
mount(node: ReactiveNode<E>): void;
|
|
@@ -89,7 +89,7 @@ export declare abstract class BaseDriver<E = unknown> implements ReactiveNodeDri
|
|
|
89
89
|
readonly isPartition: boolean;
|
|
90
90
|
readonly initialize?: Handler<E> | undefined;
|
|
91
91
|
constructor(name: string, isPartition: boolean, initialize?: Handler<E> | undefined);
|
|
92
|
-
abstract
|
|
92
|
+
abstract create(node: ReactiveNode<E>): E;
|
|
93
93
|
prepare(node: ReactiveNode<E>): void | Promise<void>;
|
|
94
94
|
finalize(node: ReactiveNode<E>, isLeader: boolean): boolean;
|
|
95
95
|
mount(node: ReactiveNode<E>): void;
|
|
@@ -283,7 +283,7 @@ class ReactiveNodeImpl extends ReactiveNode {
|
|
|
283
283
|
this.owner = owner = thisAsUnknown;
|
|
284
284
|
this.outer = thisAsUnknown;
|
|
285
285
|
}
|
|
286
|
-
this.element = driver.
|
|
286
|
+
this.element = driver.create(this);
|
|
287
287
|
this.host = thisAsUnknown;
|
|
288
288
|
this.children = new MergeList(getNodeKey, true);
|
|
289
289
|
this.slot = undefined;
|