@absolutejs/absolute 0.19.0-beta.339 → 0.19.0-beta.340

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.
@@ -29905,6 +29905,11 @@ var createStoreImpl = (createState) => {
29905
29905
  };
29906
29906
  var createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
29907
29907
 
29908
+ // node_modules/zustand/esm/middleware.mjs
29909
+ function combine(initialState, create) {
29910
+ return (...args) => Object.assign({}, initialState, create(...args));
29911
+ }
29912
+
29908
29913
  // src/client/islandStore.ts
29909
29914
  var getIslandStoreSnapshot = () => {
29910
29915
  globalThis.__ABS_ISLAND_STATE__ ??= {};
@@ -29938,8 +29943,8 @@ var initializeIslandStores = (state) => {
29938
29943
  }
29939
29944
  }
29940
29945
  };
29941
- var createIslandStore = (storeId, createState) => {
29942
- const store = createStore(createState);
29946
+ var createIslandStore = (storeId, initialState, createState) => {
29947
+ const store = createStore(combine(initialState, createState));
29943
29948
  const stores = getIslandStores();
29944
29949
  const storeInstances = stores.get(storeId) ?? new Set;
29945
29950
  const initialSnapshot = getIslandStoreSnapshot()[storeId];
@@ -30258,5 +30263,5 @@ export {
30258
30263
  createIslandManifestResolver
30259
30264
  };
30260
30265
 
30261
- //# debugId=EA1E2AFA54A352E864756E2164756E21
30266
+ //# debugId=25BC0AC8AC6B255164756E2164756E21
30262
30267
  //# sourceMappingURL=index.js.map