@xh/hoist 73.0.0-SNAPSHOT.1747231011044 → 73.0.0-SNAPSHOT.1747259771286

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/mobx/overrides.ts CHANGED
@@ -23,10 +23,16 @@ export function makeObservable(
23
23
  options?: CreateObservableOptions
24
24
  ) {
25
25
  // Finish creating 'bindable' properties for this instance.
26
- const bindables = target._xhBindableProperties;
27
- forEach(bindables, ({isRef}, name) => {
28
- const propName = `_${name}_bindable`,
29
- initVal = target[name];
26
+ forEach(target._xhBindableProperties, ({isRef}, name) => {
27
+ const propName = `_${name}_bindable`;
28
+
29
+ // makeObservable is called by each constructor in the class hierarchy.
30
+ // Don't process the property before initialized...or if its already processed
31
+ if (!target.hasOwnProperty(name) || target.hasOwnProperty(propName)) {
32
+ return;
33
+ }
34
+
35
+ const initVal = target[name];
30
36
  target[propName] = isRef ? observable.box(initVal, {deep: false}) : observable.box(initVal);
31
37
  Object.defineProperty(target, name, {
32
38
  get() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "73.0.0-SNAPSHOT.1747231011044",
3
+ "version": "73.0.0-SNAPSHOT.1747259771286",
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",