@xh/hoist 74.0.0-SNAPSHOT.1748338432179 → 74.0.0-SNAPSHOT.1748339737885
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.
|
@@ -17,11 +17,6 @@ export declare class View<T extends PlainObject = PlainObject> {
|
|
|
17
17
|
* state of the components is captured.
|
|
18
18
|
*/
|
|
19
19
|
readonly value: Partial<T>;
|
|
20
|
-
/**
|
|
21
|
-
* Defaulted to value, but may be updated during ViewManagerModel's settleTime to be
|
|
22
|
-
* the "settled" state after loading. Used for comparison to determine dirtiness.
|
|
23
|
-
*/
|
|
24
|
-
settledValue: Partial<T>;
|
|
25
20
|
private readonly model;
|
|
26
21
|
get name(): string;
|
|
27
22
|
get group(): string;
|
package/cmp/viewmanager/View.ts
CHANGED
|
@@ -27,12 +27,6 @@ export class View<T extends PlainObject = PlainObject> {
|
|
|
27
27
|
*/
|
|
28
28
|
readonly value: Partial<T> = null;
|
|
29
29
|
|
|
30
|
-
/**
|
|
31
|
-
* Defaulted to value, but may be updated during ViewManagerModel's settleTime to be
|
|
32
|
-
* the "settled" state after loading. Used for comparison to determine dirtiness.
|
|
33
|
-
*/
|
|
34
|
-
settledValue: Partial<T> = null;
|
|
35
|
-
|
|
36
30
|
private readonly model: ViewManagerModel;
|
|
37
31
|
|
|
38
32
|
get name(): string {
|
|
@@ -98,7 +92,6 @@ export class View<T extends PlainObject = PlainObject> {
|
|
|
98
92
|
constructor(info: ViewInfo, value: Partial<T>, model: ViewManagerModel) {
|
|
99
93
|
this.info = info;
|
|
100
94
|
this.value = value;
|
|
101
|
-
this.settledValue = value;
|
|
102
95
|
this.model = model;
|
|
103
96
|
}
|
|
104
97
|
}
|
|
@@ -430,14 +430,13 @@ export class ViewManagerModel<T = PlainObject> extends HoistModel {
|
|
|
430
430
|
|
|
431
431
|
@action
|
|
432
432
|
setValue(value: Partial<T>) {
|
|
433
|
-
value = this.cleanState(value);
|
|
434
|
-
|
|
435
433
|
const {view, pendingValue, lastPushed, settleTime} = this;
|
|
436
434
|
if (!pendingValue && settleTime && !olderThan(lastPushed, settleTime)) {
|
|
437
|
-
|
|
435
|
+
return;
|
|
438
436
|
}
|
|
439
437
|
|
|
440
|
-
|
|
438
|
+
value = this.cleanState(value);
|
|
439
|
+
if (!isEqual(value, view.value)) {
|
|
441
440
|
this.pendingValue = {
|
|
442
441
|
token: pendingValue ? pendingValue.token : view.token,
|
|
443
442
|
baseUpdated: pendingValue ? pendingValue.baseUpdated : view.lastUpdated,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "74.0.0-SNAPSHOT.
|
|
3
|
+
"version": "74.0.0-SNAPSHOT.1748339737885",
|
|
4
4
|
"description": "Hoist add-on for building and deploying React Applications.",
|
|
5
5
|
"repository": "github:xh/hoist-react",
|
|
6
6
|
"homepage": "https://xh.io",
|