reactronic 0.24.107 → 0.24.110

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.
@@ -48,7 +48,6 @@ export interface RxNodeDriver<T> {
48
48
  readonly isPartitionSeparator: boolean;
49
49
  readonly predefine?: SimpleDelegate<T>;
50
50
  allocate(node: RxNode<T>): T;
51
- assign(element: T): void;
52
51
  initialize(element: T): void;
53
52
  mount(element: T): void;
54
53
  update(element: T): void | Promise<void>;
@@ -24,7 +24,6 @@ export declare abstract class BaseDriver<T extends {
24
24
  readonly predefine?: SimpleDelegate<T> | undefined;
25
25
  constructor(name: string, isPartitionSeparator: boolean, predefine?: SimpleDelegate<T> | undefined);
26
26
  abstract allocate(node: RxNode<T>): T;
27
- assign(element: T): void;
28
27
  initialize(element: T): void;
29
28
  mount(element: T): void;
30
29
  update(element: T): void | Promise<void>;
@@ -111,9 +111,6 @@ export class BaseDriver {
111
111
  this.isPartitionSeparator = isPartitionSeparator;
112
112
  this.predefine = predefine;
113
113
  }
114
- assign(element) {
115
- assignViaPresetChain(element, element.node.declaration);
116
- }
117
114
  initialize(element) {
118
115
  var _a;
119
116
  (_a = this.predefine) === null || _a === void 0 ? void 0 : _a.call(this, element);
@@ -157,14 +154,6 @@ function getModeViaPresetChain(declaration) {
157
154
  var _a;
158
155
  return (_a = declaration === null || declaration === void 0 ? void 0 : declaration.mode) !== null && _a !== void 0 ? _a : ((declaration === null || declaration === void 0 ? void 0 : declaration.preset) ? getModeViaPresetChain(declaration === null || declaration === void 0 ? void 0 : declaration.preset) : Mode.Default);
159
156
  }
160
- function assignViaPresetChain(element, declaration) {
161
- const preset = declaration.preset;
162
- const create = declaration.create;
163
- if (create)
164
- create(element, preset ? () => assignViaPresetChain(element, preset) : NOP);
165
- else if (preset)
166
- assignViaPresetChain(element, preset);
167
- }
168
157
  function initializeViaPresetChain(element, declaration) {
169
158
  const preset = declaration.preset;
170
159
  const initialize = declaration.initialize;
@@ -434,7 +423,6 @@ function mountOrRemountIfNecessary(node) {
434
423
  if (node.stamp === Number.MAX_SAFE_INTEGER) {
435
424
  node.stamp = Number.MAX_SAFE_INTEGER - 1;
436
425
  unobs(() => {
437
- driver.assign(element);
438
426
  driver.initialize(element);
439
427
  if (!node.has(Mode.ManualMount)) {
440
428
  node.stamp = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactronic",
3
- "version": "0.24.107",
3
+ "version": "0.24.110",
4
4
  "description": "Reactronic - Transactional Reactive State Management",
5
5
  "publisher": "Nezaboodka Software",
6
6
  "license": "Apache-2.0",