@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.
@@ -39718,6 +39718,11 @@ var createStoreImpl = (createState) => {
39718
39718
  };
39719
39719
  var createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
39720
39720
 
39721
+ // node_modules/zustand/esm/middleware.mjs
39722
+ function combine(initialState, create) {
39723
+ return (...args) => Object.assign({}, initialState, create(...args));
39724
+ }
39725
+
39721
39726
  // src/client/islandStore.ts
39722
39727
  var getIslandStoreSnapshot = () => {
39723
39728
  globalThis.__ABS_ISLAND_STATE__ ??= {};
@@ -39751,8 +39756,8 @@ var initializeIslandStores = (state) => {
39751
39756
  }
39752
39757
  }
39753
39758
  };
39754
- var createIslandStore = (storeId, createState) => {
39755
- const store = createStore(createState);
39759
+ var createIslandStore = (storeId, initialState, createState) => {
39760
+ const store = createStore(combine(initialState, createState));
39756
39761
  const stores = getIslandStores();
39757
39762
  const storeInstances = stores.get(storeId) ?? new Set;
39758
39763
  const initialSnapshot = getIslandStoreSnapshot()[storeId];
@@ -39831,5 +39836,5 @@ export {
39831
39836
  Island
39832
39837
  };
39833
39838
 
39834
- //# debugId=9C699B2B9235EC6A64756E2164756E21
39839
+ //# debugId=AB30BE0A2047C5A764756E2164756E21
39835
39840
  //# sourceMappingURL=index.js.map