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

Allow for lazy context in machine.withConfig #2522

Merged
merged 9 commits into from
Aug 27, 2021

Conversation

farskid
Copy link
Contributor

@farskid farskid commented Aug 16, 2021

No description provided.

@farskid farskid self-assigned this Aug 16, 2021
@farskid farskid force-pushed the farskid/fix-withconfig-lazy-context-bug branch from 2f4c41f to 5a9500d Compare August 16, 2021 13:18
@farskid
Copy link
Contributor Author

farskid commented Aug 16, 2021

The tests are failing due to typing errors but the frustrating part is that the project isn't building locally for me (build command quits after 0.3s) and all tests pass 🤷‍♂️

Comment on lines +213 to +216
const a = interpret(copiedMachine).start();
const b = interpret(copiedMachine).start();

expect(a.state.context.foo).not.toBe(b.state.context.foo);
Copy link
Member

Choose a reason for hiding this comment

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

this part could be moved to a separate test - that way we would have the tested requirement listed in the test summary etc

@changeset-bot
Copy link

changeset-bot bot commented Aug 25, 2021

🦋 Changeset detected

Latest commit: 0f32769

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

This PR includes changesets to release 4 packages
Name Type
xstate Patch
@xstate/react Patch
@xstate/vue Patch
@xstate/svelte 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

Copy link
Member

@davidkpiano davidkpiano left a comment

Choose a reason for hiding this comment

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

🚢 🚢 🚢 🚢 🚢 🚢 🚢 🚢

@Andarist Andarist merged commit 8b7c3e2 into main Aug 27, 2021
@Andarist Andarist deleted the farskid/fix-withconfig-lazy-context-bug branch August 27, 2021 14:25
@github-actions github-actions bot mentioned this pull request Aug 27, 2021
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.

3 participants