Skip to content

Commit a3f4218

Browse files
fix(overmind): expose actions on SSR
1 parent 57878c5 commit a3f4218

File tree

1 file changed

+6
-5
lines changed
  • packages/node_modules/overmind/src

1 file changed

+6
-5
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,12 @@ export class Overmind<ThisConfig extends IConfiguration>
239239
this.eventHub = eventHub as EventEmitter<Events>
240240
this.mode = mode
241241

242+
243+
/*
244+
Expose the created actions
245+
*/
246+
this.actions = this.getActions(configuration.actions)
247+
242248
if (mode.mode === MODE_SSR) {
243249
return
244250
}
@@ -343,11 +349,6 @@ export class Overmind<ThisConfig extends IConfiguration>
343349
})
344350
}
345351

346-
/*
347-
Expose the created actions
348-
*/
349-
this.actions = this.getActions(configuration.actions)
350-
351352
if (mode.mode === MODE_DEFAULT && configuration.onInitialize) {
352353
const onInitialize = this.createAction(
353354
'onInitialize',

0 commit comments

Comments
 (0)