Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed an issue with invoked service not being correctly started #1185

Merged
merged 1 commit into from
May 13, 2020

Conversation

Andarist
Copy link
Member

fixes #1180

Problem was that for invoked services action.activity.type is always equal to xstate.invoke and thus all invoked services were registered/deregistered under the same key in state.activities, which led to a problem of an invoked service not being started when another invoked service has been stopped in following microstep because we only start services when machine settles macrostep to avoid starting services unnecessarily.

cc @jschppll

@Andarist Andarist requested a review from davidkpiano May 13, 2020 08:38
@changeset-bot
Copy link

changeset-bot bot commented May 13, 2020

🦋 Changeset is good to go

Latest commit: 326db72

We got this.

This PR includes changesets to release 1 package
Name Type
xstate Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 326db72:

Sandbox Source
autumn-haze-kxnq9 Configuration
epic-cloud-ioqdi Configuration

@davidkpiano davidkpiano merged commit 560e28f into master May 13, 2020
@davidkpiano davidkpiano deleted the fix/1180 branch May 13, 2020 12:25
@github-actions github-actions bot mentioned this pull request May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parallel state machines don't call invoke when using raise()
2 participants