File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
packages/node_modules/overmind/src Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -112,14 +112,19 @@ export function modules<T extends ConfigurationWithModules>(
112112 const modules = configWithModules . modules || { }
113113
114114 if ( configWithModules . onInitialize ) {
115- result . initilizers . push ( configWithModules . onInitialize )
115+ result . initializers . push ( configWithModules . onInitialize )
116116 }
117117
118118 Object . keys ( modules ) . forEach ( ( modName ) => {
119119 parseModule ( result , modName , modules [ modName ] )
120120 } )
121121
122- const onInitialize = ( action ) => action . parallel ( result . initializers )
122+ const onInitialize = configWithModules . onInitialize
123+ ? ( action ) =>
124+ action
125+ . compose ( configWithModules . onInitialize )
126+ . parallel ( result . initializers )
127+ : ( action ) => action . parallel ( result . initializers )
123128
124129 return {
125130 onInitialize,
You can’t perform that action at this time.
0 commit comments