beestate 0.1.3 → 0.1.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.
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/esm/index.esm.js +2 -2
- package/package.json +1 -1
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -186,8 +186,8 @@ class InternalStore {
|
|
|
186
186
|
const changes = reducer(instanceState, payload);
|
|
187
187
|
this.update(instanceKey, changes);
|
|
188
188
|
// TODO Убрать в логгер
|
|
189
|
-
console.log(`dispatch [store: ${this.name}, instance: ${String(instanceKey)}]:`);
|
|
190
|
-
console.dir({ payload
|
|
189
|
+
console.log(`dispatch [store: ${this.name}, instance: ${String(instanceKey)}, action: ${reducer.name}]:`);
|
|
190
|
+
console.dir({ payload, [`prev state`]: instanceState, [`next state`]: changes });
|
|
191
191
|
};
|
|
192
192
|
this.update = (instanceKey, changes) => {
|
|
193
193
|
this.state = { ...this.state, [instanceKey]: changes };
|
package/dist/esm/index.esm.js
CHANGED
|
@@ -184,8 +184,8 @@ class InternalStore {
|
|
|
184
184
|
const changes = reducer(instanceState, payload);
|
|
185
185
|
this.update(instanceKey, changes);
|
|
186
186
|
// TODO Убрать в логгер
|
|
187
|
-
console.log(`dispatch [store: ${this.name}, instance: ${String(instanceKey)}]:`);
|
|
188
|
-
console.dir({ payload
|
|
187
|
+
console.log(`dispatch [store: ${this.name}, instance: ${String(instanceKey)}, action: ${reducer.name}]:`);
|
|
188
|
+
console.dir({ payload, [`prev state`]: instanceState, [`next state`]: changes });
|
|
189
189
|
};
|
|
190
190
|
this.update = (instanceKey, changes) => {
|
|
191
191
|
this.state = { ...this.state, [instanceKey]: changes };
|
package/package.json
CHANGED