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
- formula?: Delegate<E>;
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 formula = declaration.formula;
212
- if (formula)
213
- formula(element, preset ? () => updateViaPresetChain(element, preset) : NOP);
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactronic",
3
- "version": "0.24.202",
3
+ "version": "0.24.250",
4
4
  "description": "Reactronic - Transactional Reactive State Management",
5
5
  "publisher": "Nezaboodka Software",
6
6
  "license": "Apache-2.0",