@base-framework/base 3.7.59 → 3.7.62

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.
@@ -47,6 +47,16 @@ export class BasicData {
47
47
  * @default false
48
48
  */
49
49
  _retainState: boolean;
50
+ /**
51
+ * When true, the persist/resume system treats the
52
+ * fresh data from setData() as authoritative and
53
+ * only copies persisted keys that are missing from
54
+ * the fresh data.
55
+ *
56
+ * @type {boolean}
57
+ * @default false
58
+ */
59
+ _refreshState: boolean;
50
60
  /**
51
61
  * @type {object} links
52
62
  * @default {}
@@ -70,6 +80,20 @@ export class BasicData {
70
80
  * @returns {this}
71
81
  */
72
82
  retainState(): this;
83
+ /**
84
+ * Marks this data source so the persist/resume system
85
+ * uses the fresh values from setData() as the source
86
+ * of truth. Persisted keys missing from the fresh data
87
+ * are still copied over so async-added properties
88
+ * survive across resumes.
89
+ *
90
+ * Use this when setData() reads from props, the URL,
91
+ * or other external sources that should override any
92
+ * previously stored values.
93
+ *
94
+ * @returns {this}
95
+ */
96
+ refreshState(): this;
73
97
  /**
74
98
  * This will setup the data object.
75
99
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base-framework/base",
3
- "version": "3.7.59",
3
+ "version": "3.7.62",
4
4
  "description": "This is a javascript framework.",
5
5
  "main": "./dist/base.js",
6
6
  "type": "module",