@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.
@@ -38507,13 +38507,21 @@ var initializeIslandStores = (state) => {
38507
38507
  applySnapshot(store, nextSnapshot[storeId]);
38508
38508
  }
38509
38509
  };
38510
- var createIslandStore = (storeId, createState) => {
38510
+ var createIslandStore = (storeId) => (createState) => {
38511
38511
  const stores = getIslandStores();
38512
38512
  const existingStore = stores.get(storeId);
38513
38513
  if (existingStore) {
38514
38514
  return existingStore;
38515
38515
  }
38516
- const store = createStore()((set, get, store2) => createState(set, get, store2));
38516
+ const store = createStore()((set, get, api) => createState((update) => {
38517
+ set((state) => {
38518
+ const nextPartial = typeof update === "function" ? update(state) : update;
38519
+ return {
38520
+ ...state,
38521
+ ...nextPartial
38522
+ };
38523
+ });
38524
+ }, get, api));
38517
38525
  const initialSnapshot = getIslandStoreSnapshot()[storeId];
38518
38526
  applySnapshot(store, initialSnapshot);
38519
38527
  getIslandStoreSnapshot()[storeId] = toSerializableState(store.getState());
@@ -38567,5 +38575,5 @@ export {
38567
38575
  Island
38568
38576
  };
38569
38577
 
38570
- //# debugId=164541E9887AE54D64756E2164756E21
38578
+ //# debugId=FA0D8CD2D75B6B1D64756E2164756E21
38571
38579
  //# sourceMappingURL=browser.js.map