@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
|
@@ -2907,7 +2907,7 @@ function useDollarState(specs) {
|
|
|
2907
2907
|
}
|
|
2908
2908
|
// we need to eager initialize all states in canvas to populate the data picker
|
|
2909
2909
|
$$state.specTreeLeaves.forEach(function (node) {
|
|
2910
|
-
var _newSpec$initFuncHash;
|
|
2910
|
+
var _newSpec$initFuncHash, _newSpec$initFuncHash2;
|
|
2911
2911
|
var spec = node.getSpec();
|
|
2912
2912
|
if (spec.isRepeated) {
|
|
2913
2913
|
return;
|
|
@@ -2916,11 +2916,11 @@ function useDollarState(specs) {
|
|
|
2916
2916
|
var newSpec = specs.find(function (sp) {
|
|
2917
2917
|
return sp.path === spec.path;
|
|
2918
2918
|
});
|
|
2919
|
-
if (!newSpec || stateCell.initFuncHash === (newSpec == null ? void 0 : newSpec.initFuncHash)
|
|
2919
|
+
if (!newSpec || stateCell.initFuncHash === ((_newSpec$initFuncHash = newSpec == null ? void 0 : newSpec.initFuncHash) != null ? _newSpec$initFuncHash : "") && stateCell.initialValue !== UNINITIALIZED) {
|
|
2920
2920
|
return;
|
|
2921
2921
|
}
|
|
2922
2922
|
stateCell.initFunc = newSpec.initFunc;
|
|
2923
|
-
stateCell.initFuncHash = (_newSpec$
|
|
2923
|
+
stateCell.initFuncHash = (_newSpec$initFuncHash2 = newSpec.initFuncHash) != null ? _newSpec$initFuncHash2 : "";
|
|
2924
2924
|
var init = spec.valueProp ? $$state.env.$props[spec.valueProp] : spec.initFunc ? initializeStateValue($$state, stateCell, $state) : spec.initVal;
|
|
2925
2925
|
set($state, spec.pathObj, init);
|
|
2926
2926
|
});
|