Skip to content

Commit

Permalink
fix: dev tool add required selector
Browse files Browse the repository at this point in the history
  • Loading branch information
LiJun committed Apr 7, 2020
1 parent 03e982c commit fa832f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/dev-tool.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default ({ use, storeMap }) => {
use({
afterReducer({ storeName, reducerName, payload }) {
Object.keys(storeMap).forEach(k => {
newStore[k] = storeMap[k].getState();
newStore[k] = storeMap[k].getState(s => s);
});
devtools.send(
{ type: `[${storeName}] > ${reducerName}`, payload },
Expand Down

0 comments on commit fa832f9

Please sign in to comment.