Skip to content

Commit 8a66564

Browse files
fix(overmind): only run root onInitialize once
1 parent 22852fe commit 8a66564

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/node_modules/overmind/src/modules.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,7 @@ export function modules<T extends ConfigurationWithModules>(
119119
parseModule(result, modName, modules[modName])
120120
})
121121

122-
const onInitialize = configWithModules.onInitialize
123-
? (action) =>
124-
action
125-
.compose(configWithModules.onInitialize)
126-
.parallel(result.initializers)
127-
: (action) => action.parallel(result.initializers)
122+
const onInitialize = (action) => action.parallel(result.initializers)
128123

129124
return {
130125
onInitialize,

0 commit comments

Comments
 (0)