Skip to content

Commit 9911e6d

Browse files
feat(overmind): send full name of action to devtools
1 parent c7fceaa commit 9911e6d

File tree

1 file changed

+4
-1
lines changed
  • packages/node_modules/overmind/src

1 file changed

+4
-1
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,10 @@ export class Overmind<ThisConfig extends IConfiguration>
789789
private getActions(actions: any = {}, path: string[] = []) {
790790
return Object.keys(actions).reduce((aggr, name) => {
791791
if (typeof actions[name] === 'function') {
792-
const action = this.createAction(name, actions[name]) as any
792+
const action = this.createAction(
793+
path.concat(name).join('.'),
794+
actions[name]
795+
) as any
793796

794797
action.displayName = path.concat(name).join('.')
795798

0 commit comments

Comments
 (0)