@sladg/apex-state 3.0.3 → 3.0.4

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/index.js CHANGED
@@ -2694,7 +2694,16 @@ var createProvider = (storeConfig) => {
2694
2694
  };
2695
2695
  }, []);
2696
2696
  useEffect(() => {
2697
- if (isLegacy || isWasmLoaded()) return;
2697
+ if (isLegacy) return;
2698
+ if (isWasmLoaded()) {
2699
+ if (!store._internal.pipeline) {
2700
+ initPipeline(
2701
+ store._internal,
2702
+ prepared.initialState
2703
+ );
2704
+ }
2705
+ return;
2706
+ }
2698
2707
  loadWasm2().then(() => {
2699
2708
  initPipeline(
2700
2709
  store._internal,