Skip to content

Commit

Permalink
fix(action): return function as devtools value
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewcourtice committed Sep 7, 2021
1 parent 97e7203 commit b7efd94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/action/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function actionsExtension<TState extends BaseState>() {
}

function registerAction(name: string) {
_store.register('actions', name, () => _store.state.$actions[name]);
_store.register('actions', name, () => () => {});
_store.write('$action-register', SENDER, state => setActionState(state, name), true);
}

Expand Down

0 comments on commit b7efd94

Please sign in to comment.