We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33dc5b0 commit 6eea3fcCopy full SHA for 6eea3fc
packages/node_modules/overmind/src/config/index.ts
@@ -201,8 +201,8 @@ export function namespaced<T extends NamespacedConfiguration>(
201
},
202
result.initializers.length
203
? {
204
- onInitialize: (context) =>
205
- Promise.all(result.initializers.map((cb) => cb(context))),
+ onInitialize: (context, app) =>
+ Promise.all(result.initializers.map((cb) => cb(context, app))),
206
}
207
: {}
208
)
@@ -291,7 +291,6 @@ export function lazy<T extends LazyConfiguration, B = T>(
291
if (newConfig.onInitialize)
292
newConfig.onInitialize(
293
{
294
- value: app,
295
state,
296
...rest,
297
0 commit comments