Skip to content

Commit

Permalink
Merge pull request #573 from kousu/named-state-contexts
Browse files Browse the repository at this point in the history
Preserve default context on start from named state
  • Loading branch information
davidkpiano authored Jul 26, 2019
2 parents a3215b7 + f900f0a commit 93ad34d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interpreter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ export class Interpreter<
? this.machine.initialState
: initialState instanceof State
? this.machine.resolveState(initialState)
: this.machine.resolveState(State.from(initialState));
: this.machine.resolveState(State.from(initialState, this.machine.context));
});

if (this.options.devTools) {
Expand Down

0 comments on commit 93ad34d

Please sign in to comment.