@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.
@@ -30269,13 +30269,21 @@ var initializeIslandStores = (state) => {
30269
30269
  applySnapshot(store, nextSnapshot[storeId]);
30270
30270
  }
30271
30271
  };
30272
- var createIslandStore = (storeId, createState) => {
30272
+ var createIslandStore = (storeId) => (createState) => {
30273
30273
  const stores = getIslandStores();
30274
30274
  const existingStore = stores.get(storeId);
30275
30275
  if (existingStore) {
30276
30276
  return existingStore;
30277
30277
  }
30278
- const store = createStore()((set, get, store2) => createState(set, get, store2));
30278
+ const store = createStore()((set, get, api) => createState((update) => {
30279
+ set((state) => {
30280
+ const nextPartial = typeof update === "function" ? update(state) : update;
30281
+ return {
30282
+ ...state,
30283
+ ...nextPartial
30284
+ };
30285
+ });
30286
+ }, get, api));
30279
30287
  const initialSnapshot = getIslandStoreSnapshot()[storeId];
30280
30288
  applySnapshot(store, initialSnapshot);
30281
30289
  getIslandStoreSnapshot()[storeId] = toSerializableState(store.getState());
@@ -30304,5 +30312,5 @@ export {
30304
30312
  createIslandStore
30305
30313
  };
30306
30314
 
30307
- //# debugId=4B2AB868FF2D570C64756E2164756E21
30315
+ //# debugId=677B248489EBBD7764756E2164756E21
30308
30316
  //# sourceMappingURL=server.js.map