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

Fix log example on readme super quick start section #4744

Closed
wants to merge 3 commits into from
Closed

Fix log example on readme super quick start section #4744

wants to merge 3 commits into from

Conversation

LuccaBessa
Copy link

The count on the line 156 was 1 instead of 2

Copy link

changeset-bot bot commented Feb 16, 2024

🦋 Changeset detected

Latest commit: 8c5f957

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
xstate Major
@xstate/react Major
@xstate/svelte Major
@xstate/vue Major

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

Copy link

codesandbox-ci bot commented Feb 16, 2024

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.

@@ -153,7 +153,7 @@ toggleActor.send({ type: 'TOGGLE' });
// => logs 'active', { count: 1 }

toggleActor.send({ type: 'TOGGLE' });
// => logs 'inactive', { count: 1 }
// => logs 'inactive', { count: 2 }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not correct. This machine doesn't increment the counter when transitioning from the active state to the inactive state so the counter's value stays the same

@Andarist Andarist closed this Feb 17, 2024
@LuccaBessa LuccaBessa deleted the fix-log-example-on-readme-super-quick-start-section branch February 17, 2024 15:57
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.

None yet

2 participants