@absolutejs/absolute 0.19.0-beta.335 → 0.19.0-beta.337

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.
@@ -39749,13 +39749,21 @@ var initializeIslandStores = (state) => {
39749
39749
  applySnapshot(store, nextSnapshot[storeId]);
39750
39750
  }
39751
39751
  };
39752
- var createIslandStore = (storeId, createState) => {
39752
+ var createIslandStore = (storeId) => (createState) => {
39753
39753
  const stores = getIslandStores();
39754
39754
  const existingStore = stores.get(storeId);
39755
39755
  if (existingStore) {
39756
39756
  return existingStore;
39757
39757
  }
39758
- const store = createStore()((set, get, store2) => createState(set, get, store2));
39758
+ const store = createStore()((set, get, api) => createState((update) => {
39759
+ set((state) => {
39760
+ const nextPartial = typeof update === "function" ? update(state) : update;
39761
+ return {
39762
+ ...state,
39763
+ ...nextPartial
39764
+ };
39765
+ });
39766
+ }, get, api));
39759
39767
  const initialSnapshot = getIslandStoreSnapshot()[storeId];
39760
39768
  applySnapshot(store, initialSnapshot);
39761
39769
  getIslandStoreSnapshot()[storeId] = toSerializableState(store.getState());
@@ -39809,5 +39817,5 @@ export {
39809
39817
  Island
39810
39818
  };
39811
39819
 
39812
- //# debugId=B0FB1CC27CD5699E64756E2164756E21
39820
+ //# debugId=A81F267E47B9578264756E2164756E21
39813
39821
  //# sourceMappingURL=index.js.map