reactronic 0.24.104 → 0.24.107
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.
package/README.md
CHANGED
|
@@ -198,7 +198,7 @@ class Component<P> extends React.Component<P> {
|
|
|
198
198
|
} // ensureUpToDate is subscribed to render
|
|
199
199
|
|
|
200
200
|
shouldComponentUpdate(): boolean {
|
|
201
|
-
return !
|
|
201
|
+
return !RxSystem.getController(this.render).isUpToDate
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
componentDidMount(): void {
|
|
@@ -206,7 +206,7 @@ class Component<P> extends React.Component<P> {
|
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
componentWillUnmount(): void {
|
|
209
|
-
Transaction.run(null,
|
|
209
|
+
Transaction.run(null, RxSystem.dispose, this)
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
```
|
|
@@ -18,7 +18,7 @@ export declare abstract class RxNode<T = any> {
|
|
|
18
18
|
abstract readonly declaration: Readonly<RxNodeDecl<T>>;
|
|
19
19
|
abstract readonly level: number;
|
|
20
20
|
abstract readonly owner: RxNode;
|
|
21
|
-
abstract
|
|
21
|
+
abstract element: T;
|
|
22
22
|
abstract readonly host: RxNode;
|
|
23
23
|
abstract readonly children: MergeListReader<RxNode>;
|
|
24
24
|
abstract readonly slot: MergedItem<RxNode<T>> | undefined;
|
|
@@ -16,7 +16,7 @@ export { Changeset } from './impl/Changeset.js';
|
|
|
16
16
|
export { Transaction } from './impl/Transaction.js';
|
|
17
17
|
export { Monitor } from './impl/Monitor.js';
|
|
18
18
|
export { Journal } from './impl/Journal.js';
|
|
19
|
-
export { RxSystem
|
|
19
|
+
export { RxSystem, raw, obs, transactional, reactive, cached, transaction, unobs, sensitive, options } from './RxSystem.js';
|
|
20
20
|
export { Mode, Priority } from './RxNode.js';
|
|
21
21
|
export type { Delegate, SimpleDelegate, RxNode, RxNodeDecl, RxNodeDriver, RxNodeContext } from './RxNode.js';
|
|
22
22
|
export { RxTree, BaseDriver, RxNodeVariable } from './RxTree.js';
|
package/build/dist/source/api.js
CHANGED
|
@@ -12,7 +12,7 @@ export { Changeset } from './impl/Changeset.js';
|
|
|
12
12
|
export { Transaction } from './impl/Transaction.js';
|
|
13
13
|
export { Monitor } from './impl/Monitor.js';
|
|
14
14
|
export { Journal } from './impl/Journal.js';
|
|
15
|
-
export { RxSystem
|
|
15
|
+
export { RxSystem, raw, obs, transactional, reactive, cached, transaction, unobs, sensitive, options } from './RxSystem.js';
|
|
16
16
|
export { Mode, Priority } from './RxNode.js';
|
|
17
17
|
export { RxTree, BaseDriver, RxNodeVariable } from './RxTree.js';
|
|
18
18
|
export { Clock } from './Clock.js';
|
|
@@ -97,7 +97,7 @@ export class ReactionImpl {
|
|
|
97
97
|
}
|
|
98
98
|
static dependencies() {
|
|
99
99
|
const l = Launch.current;
|
|
100
|
-
return l ? l.dependencies() : ['
|
|
100
|
+
return l ? l.dependencies() : ['RxSystem.dependencies should be called from inside of reactive method'];
|
|
101
101
|
}
|
|
102
102
|
peek(args) {
|
|
103
103
|
const ctx = Changeset.current();
|