cerebral/overmind

[BUG] overmind-statechart@next: specifying onInitializeOvermind overrides internal initialization

schiller-manuel opened this issue · 0 comments

When the config contains an onInitializeOvermind action, the internal initialization method is overriden. This will cause the charts not being sent to the devtools anymore (and probably breaks other stuff).

The problem originates here:

if (key === 'onInitializeOvermind') {
aggr[key] = actions[key]
} else {

This will override this action:

onInitializeOvermind: ((context, instance) => {