@fctc/interface-logic 1.6.2 → 1.6.4

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.
@@ -255,7 +255,9 @@ var envSlice = (0, import_toolkit2.createSlice)({
255
255
  initialState: initialState2,
256
256
  reducers: {
257
257
  setEnv: (state, action) => {
258
- Object.assign(state, action.payload);
258
+ console.log("state in slice", state);
259
+ console.log("env in slice", action.payload);
260
+ state = { ...state, ...action.payload };
259
261
  },
260
262
  setUid: (state, action) => {
261
263
  state.context.uid = action.payload;
@@ -216,7 +216,9 @@ var envSlice = createSlice2({
216
216
  initialState: initialState2,
217
217
  reducers: {
218
218
  setEnv: (state, action) => {
219
- Object.assign(state, action.payload);
219
+ console.log("state in slice", state);
220
+ console.log("env in slice", action.payload);
221
+ state = { ...state, ...action.payload };
220
222
  },
221
223
  setUid: (state, action) => {
222
224
  state.context.uid = action.payload;
package/dist/hooks.js CHANGED
@@ -353,7 +353,9 @@ var envSlice = (0, import_toolkit2.createSlice)({
353
353
  initialState: initialState2,
354
354
  reducers: {
355
355
  setEnv: (state, action) => {
356
- Object.assign(state, action.payload);
356
+ console.log("state in slice", state);
357
+ console.log("env in slice", action.payload);
358
+ state = { ...state, ...action.payload };
357
359
  },
358
360
  setUid: (state, action) => {
359
361
  state.context.uid = action.payload;
package/dist/hooks.mjs CHANGED
@@ -249,7 +249,9 @@ var envSlice = createSlice2({
249
249
  initialState: initialState2,
250
250
  reducers: {
251
251
  setEnv: (state, action) => {
252
- Object.assign(state, action.payload);
252
+ console.log("state in slice", state);
253
+ console.log("env in slice", action.payload);
254
+ state = { ...state, ...action.payload };
253
255
  },
254
256
  setUid: (state, action) => {
255
257
  state.context.uid = action.payload;
package/dist/provider.js CHANGED
@@ -106,7 +106,9 @@ var envSlice = (0, import_toolkit2.createSlice)({
106
106
  initialState: initialState2,
107
107
  reducers: {
108
108
  setEnv: (state, action) => {
109
- Object.assign(state, action.payload);
109
+ console.log("state in slice", state);
110
+ console.log("env in slice", action.payload);
111
+ state = { ...state, ...action.payload };
110
112
  },
111
113
  setUid: (state, action) => {
112
114
  state.context.uid = action.payload;
package/dist/provider.mjs CHANGED
@@ -68,7 +68,9 @@ var envSlice = createSlice2({
68
68
  initialState: initialState2,
69
69
  reducers: {
70
70
  setEnv: (state, action) => {
71
- Object.assign(state, action.payload);
71
+ console.log("state in slice", state);
72
+ console.log("env in slice", action.payload);
73
+ state = { ...state, ...action.payload };
72
74
  },
73
75
  setUid: (state, action) => {
74
76
  state.context.uid = action.payload;
package/dist/services.js CHANGED
@@ -290,7 +290,9 @@ var envSlice = (0, import_toolkit2.createSlice)({
290
290
  initialState: initialState2,
291
291
  reducers: {
292
292
  setEnv: (state, action) => {
293
- Object.assign(state, action.payload);
293
+ console.log("state in slice", state);
294
+ console.log("env in slice", action.payload);
295
+ state = { ...state, ...action.payload };
294
296
  },
295
297
  setUid: (state, action) => {
296
298
  state.context.uid = action.payload;
package/dist/services.mjs CHANGED
@@ -246,7 +246,9 @@ var envSlice = createSlice2({
246
246
  initialState: initialState2,
247
247
  reducers: {
248
248
  setEnv: (state, action) => {
249
- Object.assign(state, action.payload);
249
+ console.log("state in slice", state);
250
+ console.log("env in slice", action.payload);
251
+ state = { ...state, ...action.payload };
250
252
  },
251
253
  setUid: (state, action) => {
252
254
  state.context.uid = action.payload;
package/dist/store.js CHANGED
@@ -152,7 +152,9 @@ var envSlice = (0, import_toolkit2.createSlice)({
152
152
  initialState: initialState2,
153
153
  reducers: {
154
154
  setEnv: (state, action) => {
155
- Object.assign(state, action.payload);
155
+ console.log("state in slice", state);
156
+ console.log("env in slice", action.payload);
157
+ state = { ...state, ...action.payload };
156
158
  },
157
159
  setUid: (state, action) => {
158
160
  state.context.uid = action.payload;
package/dist/store.mjs CHANGED
@@ -48,7 +48,9 @@ var envSlice = createSlice2({
48
48
  initialState: initialState2,
49
49
  reducers: {
50
50
  setEnv: (state, action) => {
51
- Object.assign(state, action.payload);
51
+ console.log("state in slice", state);
52
+ console.log("env in slice", action.payload);
53
+ state = { ...state, ...action.payload };
52
54
  },
53
55
  setUid: (state, action) => {
54
56
  state.context.uid = action.payload;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "1.6.2",
3
+ "version": "1.6.4",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",