@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.
- package/dist/angular/browser.js +8 -3
- package/dist/angular/browser.js.map +5 -4
- package/dist/angular/index.js +8 -3
- package/dist/angular/index.js.map +5 -4
- package/dist/build.js +2 -2
- package/dist/build.js.map +1 -1
- package/dist/client/index.js +8 -3
- package/dist/client/index.js.map +5 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/islands/browser.js +8 -3
- package/dist/islands/browser.js.map +5 -4
- package/dist/islands/index.js +8 -3
- package/dist/islands/index.js.map +5 -4
- package/dist/islands/server.js +8 -3
- package/dist/islands/server.js.map +5 -4
- package/dist/react/browser.js +8 -3
- package/dist/react/browser.js.map +5 -4
- package/dist/react/hooks/index.js +8 -3
- package/dist/react/hooks/index.js.map +5 -4
- package/dist/react/index.js +8 -3
- package/dist/react/index.js.map +5 -4
- package/dist/src/client/islandStore.d.ts +1 -1
- package/dist/svelte/browser.js +8 -3
- package/dist/svelte/browser.js.map +5 -4
- package/dist/svelte/index.js +8 -3
- package/dist/svelte/index.js.map +5 -4
- package/dist/vue/browser.js +8 -3
- package/dist/vue/browser.js.map +5 -4
- package/dist/vue/index.js +8 -3
- package/dist/vue/index.js.map +5 -4
- package/package.json +1 -1
package/dist/islands/server.js
CHANGED
|
@@ -30238,6 +30238,11 @@ var createStoreImpl = (createState) => {
|
|
|
30238
30238
|
};
|
|
30239
30239
|
var createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
|
|
30240
30240
|
|
|
30241
|
+
// node_modules/zustand/esm/middleware.mjs
|
|
30242
|
+
function combine(initialState, create) {
|
|
30243
|
+
return (...args) => Object.assign({}, initialState, create(...args));
|
|
30244
|
+
}
|
|
30245
|
+
|
|
30241
30246
|
// src/client/islandStore.ts
|
|
30242
30247
|
var getIslandStoreSnapshot = () => {
|
|
30243
30248
|
globalThis.__ABS_ISLAND_STATE__ ??= {};
|
|
@@ -30271,8 +30276,8 @@ var initializeIslandStores = (state) => {
|
|
|
30271
30276
|
}
|
|
30272
30277
|
}
|
|
30273
30278
|
};
|
|
30274
|
-
var createIslandStore = (storeId, createState) => {
|
|
30275
|
-
const store = createStore(createState);
|
|
30279
|
+
var createIslandStore = (storeId, initialState, createState) => {
|
|
30280
|
+
const store = createStore(combine(initialState, createState));
|
|
30276
30281
|
const stores = getIslandStores();
|
|
30277
30282
|
const storeInstances = stores.get(storeId) ?? new Set;
|
|
30278
30283
|
const initialSnapshot = getIslandStoreSnapshot()[storeId];
|
|
@@ -30326,5 +30331,5 @@ export {
|
|
|
30326
30331
|
createIslandStore
|
|
30327
30332
|
};
|
|
30328
30333
|
|
|
30329
|
-
//# debugId=
|
|
30334
|
+
//# debugId=3663EA38AB7139A764756E2164756E21
|
|
30330
30335
|
//# sourceMappingURL=server.js.map
|