reactronic 0.24.202 → 0.24.250
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.
|
@@ -55,7 +55,7 @@ export declare abstract class RxNode<E = unknown> {
|
|
|
55
55
|
static setDefaultLoggingOptions(logging?: LoggingOptions): void;
|
|
56
56
|
}
|
|
57
57
|
export type RxNodeDecl<E = unknown> = {
|
|
58
|
-
|
|
58
|
+
autorun?: Delegate<E>;
|
|
59
59
|
key?: string;
|
|
60
60
|
mode?: Mode;
|
|
61
61
|
activation?: Delegate<E>;
|
|
@@ -208,9 +208,9 @@ function activateViaPresetChain(element, declaration) {
|
|
|
208
208
|
}
|
|
209
209
|
function updateViaPresetChain(element, declaration) {
|
|
210
210
|
const preset = declaration.preset;
|
|
211
|
-
const
|
|
212
|
-
if (
|
|
213
|
-
|
|
211
|
+
const autorun = declaration.autorun;
|
|
212
|
+
if (autorun)
|
|
213
|
+
autorun(element, preset ? () => updateViaPresetChain(element, preset) : NOP);
|
|
214
214
|
else if (preset)
|
|
215
215
|
updateViaPresetChain(element, preset);
|
|
216
216
|
}
|