Skip to content

Commit

Permalink
Merge pull request #92 from tearill/fix_store_export
Browse files Browse the repository at this point in the history
fix: correct parameter structure in emitDevtool call
  • Loading branch information
errorrik authored Oct 31, 2024
2 parents 0e54932 + b364749 commit 0edefd0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.2.7 (2024-10-31)
---------

- [修复] emitDevtool 方法调用时传参错误,导致运行时错误


2.2.6 (2023-6-26)
---------

Expand Down
4 changes: 2 additions & 2 deletions src/default-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import Store from './store';
import emitDevtool from './devtool/emitter';

let defaultStore = new Store({name: '__default__'});
const defaultStore = new Store({name: '__default__'});
/**
* 全局默认 Store 实例
* 通常,在一个应用应该具有一个全局唯一的 store,管理整个应用状态
Expand All @@ -21,4 +21,4 @@ export default defaultStore;

// Alternatives for not receiving the events including default store info from
// connector.
emitDevtool('store-default-inited', {defaultStore});
emitDevtool('store-default-inited', {store: defaultStore});

0 comments on commit 0edefd0

Please sign in to comment.