@plasmicapp/react-web 0.2.184 → 0.2.185
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/dist/react-web.cjs.development.js +3 -3
- package/dist/react-web.cjs.development.js.map +1 -1
- package/dist/react-web.cjs.production.min.js +1 -1
- package/dist/react-web.cjs.production.min.js.map +1 -1
- package/dist/react-web.esm.js +3 -3
- package/dist/react-web.esm.js.map +1 -1
- package/package.json +2 -2
- package/skinny/dist/index.js +4 -4
- package/skinny/dist/index.js.map +1 -1
package/dist/react-web.esm.js
CHANGED
|
@@ -2902,7 +2902,7 @@ function useDollarState(specs) {
|
|
|
2902
2902
|
}
|
|
2903
2903
|
// we need to eager initialize all states in canvas to populate the data picker
|
|
2904
2904
|
$$state.specTreeLeaves.forEach(function (node) {
|
|
2905
|
-
var _newSpec$initFuncHash;
|
|
2905
|
+
var _newSpec$initFuncHash, _newSpec$initFuncHash2;
|
|
2906
2906
|
var spec = node.getSpec();
|
|
2907
2907
|
if (spec.isRepeated) {
|
|
2908
2908
|
return;
|
|
@@ -2911,11 +2911,11 @@ function useDollarState(specs) {
|
|
|
2911
2911
|
var newSpec = specs.find(function (sp) {
|
|
2912
2912
|
return sp.path === spec.path;
|
|
2913
2913
|
});
|
|
2914
|
-
if (!newSpec || stateCell.initFuncHash === (newSpec == null ? void 0 : newSpec.initFuncHash)
|
|
2914
|
+
if (!newSpec || stateCell.initFuncHash === ((_newSpec$initFuncHash = newSpec == null ? void 0 : newSpec.initFuncHash) != null ? _newSpec$initFuncHash : "") && stateCell.initialValue !== UNINITIALIZED) {
|
|
2915
2915
|
return;
|
|
2916
2916
|
}
|
|
2917
2917
|
stateCell.initFunc = newSpec.initFunc;
|
|
2918
|
-
stateCell.initFuncHash = (_newSpec$
|
|
2918
|
+
stateCell.initFuncHash = (_newSpec$initFuncHash2 = newSpec.initFuncHash) != null ? _newSpec$initFuncHash2 : "";
|
|
2919
2919
|
var init = spec.valueProp ? $$state.env.$props[spec.valueProp] : spec.initFunc ? initializeStateValue($$state, stateCell, $state) : spec.initVal;
|
|
2920
2920
|
set($state, spec.pathObj, init);
|
|
2921
2921
|
});
|