Skip to content

Commit f0f66db

Browse files
fix(overmind): ssr now properly hydrates async mutations
1 parent f468ce7 commit f0f66db

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/node_modules/overmind/src/Overmind.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,11 @@ export class Overmind<ThisConfig extends IConfiguration>
434434
? boundExecution
435435
: undefined
436436

437-
if (utils.ENVIRONMENT === 'production' || action[utils.IS_OPERATOR]) {
437+
if (
438+
utils.ENVIRONMENT === 'production' ||
439+
action[utils.IS_OPERATOR] ||
440+
this.mode.mode === utils.MODE_SSR
441+
) {
438442
const execution = this.createExecution(name, action, boundExecution)
439443
this.eventHub.emit(internalTypes.EventType.ACTION_START, {
440444
...execution,

0 commit comments

Comments
 (0)