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

multi-word examples for state.matches #435

Merged
merged 1 commit into from
Aug 17, 2024
Merged

Conversation

TribeWeb
Copy link
Contributor

(from Discord)
Hi all. A quick thought on the state.matches examples given in https://stately.ai/docs/states#statematchesstatevalue. Given that many examples of states have more than one word, could we have examples that show this usage with child states too? It seems obvious how to do it now I've figured it out, but this actually had me scratching my head for a while!
E.g.
// state.value === { 'fetching question' : 'displaying loading' }
state.matches({ 'fetching question' : 'displaying loading' }); // true

Copy link

vercel bot commented Aug 17, 2024

@TribeWeb is attempting to deploy a commit to the Stately Team on Vercel.

A member of the Team first needs to authorize it.

@davidkpiano davidkpiano merged commit 71325ca into statelyai:main Aug 17, 2024
1 check failed
@TribeWeb TribeWeb deleted the patch-1 branch August 17, 2024 17:34
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.

2 participants