@ws-ui/store 0.2.31 → 0.2.32

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/index.es.js CHANGED
@@ -15199,31 +15199,36 @@ const YD = Ch({
15199
15199
  model: uD
15200
15200
  });
15201
15201
  let La;
15202
- const qD = () => (La || (La = Nw({
15203
- reducer: YD
15204
- }), La.subscribe(
15205
- K1(() => {
15206
- const {
15207
- root: { activeTab: e, tabs: n, recent: t },
15208
- roles: a,
15209
- debugger: s,
15210
- webforms: i,
15211
- sharedCSS: c,
15212
- settings: { session: f }
15213
- } = La.getState();
15214
- eT({
15215
- ...f
15216
- }), Q1({
15217
- tabs: n,
15218
- activeTab: e,
15219
- recent: t,
15220
- roles: a,
15221
- debugger: s,
15222
- webforms: i,
15223
- sharedCSS: c
15202
+ const qD = () => {
15203
+ if (!La) {
15204
+ La = Nw({
15205
+ reducer: YD
15224
15206
  });
15225
- }, 1e3)
15226
- )), La);
15207
+ const e = () => {
15208
+ const {
15209
+ root: { activeTab: n, tabs: t, recent: a },
15210
+ roles: s,
15211
+ debugger: i,
15212
+ webforms: c,
15213
+ sharedCSS: f,
15214
+ settings: { session: l }
15215
+ } = La.getState();
15216
+ eT({
15217
+ ...l
15218
+ }), Q1({
15219
+ tabs: t,
15220
+ activeTab: n,
15221
+ recent: a,
15222
+ roles: s,
15223
+ debugger: i,
15224
+ webforms: c,
15225
+ sharedCSS: f
15226
+ });
15227
+ };
15228
+ La.subscribe(K1(e, 1e3)), window.addEventListener("beforeunload", e);
15229
+ }
15230
+ return La;
15231
+ };
15227
15232
  var Ic = { exports: {} }, Qr = {};
15228
15233
  /** @license React v17.0.2
15229
15234
  * react-jsx-runtime.production.min.js