@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.
- package/dist/angular/browser.js +11 -3
- package/dist/angular/browser.js.map +3 -3
- package/dist/angular/index.js +11 -3
- package/dist/angular/index.js.map +3 -3
- package/dist/client/index.js +11 -3
- package/dist/client/index.js.map +3 -3
- package/dist/islands/browser.js +11 -3
- package/dist/islands/browser.js.map +3 -3
- package/dist/islands/index.js +11 -3
- package/dist/islands/index.js.map +3 -3
- package/dist/islands/server.js +11 -3
- package/dist/islands/server.js.map +3 -3
- package/dist/react/browser.js +11 -3
- package/dist/react/browser.js.map +3 -3
- package/dist/react/hooks/index.js +11 -3
- package/dist/react/hooks/index.js.map +3 -3
- package/dist/react/index.js +11 -3
- package/dist/react/index.js.map +3 -3
- package/dist/src/client/islandStore.d.ts +3 -2
- package/dist/svelte/browser.js +11 -3
- package/dist/svelte/browser.js.map +3 -3
- package/dist/svelte/index.js +11 -3
- package/dist/svelte/index.js.map +3 -3
- package/dist/vue/browser.js +11 -3
- package/dist/vue/browser.js.map +3 -3
- package/dist/vue/index.js +11 -3
- package/dist/vue/index.js.map +3 -3
- package/package.json +1 -1
package/dist/islands/server.js
CHANGED
|
@@ -30269,13 +30269,21 @@ var initializeIslandStores = (state) => {
|
|
|
30269
30269
|
applySnapshot(store, nextSnapshot[storeId]);
|
|
30270
30270
|
}
|
|
30271
30271
|
};
|
|
30272
|
-
var createIslandStore = (storeId
|
|
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,
|
|
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=
|
|
30315
|
+
//# debugId=677B248489EBBD7764756E2164756E21
|
|
30308
30316
|
//# sourceMappingURL=server.js.map
|