@fluid-topics/ft-wc-utils 0.1.3 → 0.1.5
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/build/redux.d.ts +1 -1
- package/build/redux.js +5 -5
- package/package.json +2 -2
package/build/redux.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare abstract class FtLitElementRedux extends FtLitElement {
|
|
|
12
12
|
}
|
|
13
13
|
declare global {
|
|
14
14
|
interface Window {
|
|
15
|
-
|
|
15
|
+
ftReduxStores?: Record<string, Store>;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
export declare function getStore(slice: Slice): Store;
|
package/build/redux.js
CHANGED
|
@@ -36,15 +36,15 @@ export class FtLitElementRedux extends FtLitElement {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
export function getStore(slice) {
|
|
39
|
-
if (!window.
|
|
40
|
-
window.
|
|
39
|
+
if (!window.ftReduxStores) {
|
|
40
|
+
window.ftReduxStores = {};
|
|
41
41
|
}
|
|
42
42
|
const name = slice.name;
|
|
43
|
-
if (!window.
|
|
44
|
-
window.
|
|
43
|
+
if (!window.ftReduxStores[name]) {
|
|
44
|
+
window.ftReduxStores[name] = configureStore({
|
|
45
45
|
reducer: slice.reducer
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
return window.
|
|
48
|
+
return window.ftReduxStores[name];
|
|
49
49
|
}
|
|
50
50
|
//# sourceMappingURL=redux.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-wc-utils",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Internal web components tools",
|
|
5
5
|
"author": "Fluid Topics <devtopics@antidot.net>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"lit": "^2.0.2"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "f16aecf32336c8e05fe0898ccc3f4a25fd5be6a2"
|
|
22
22
|
}
|