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

Feature request: Provide <Preview> component #39

Open
RainerAtSpirit opened this issue Nov 7, 2019 · 0 comments
Open

Feature request: Provide <Preview> component #39

RainerAtSpirit opened this issue Nov 7, 2019 · 0 comments

Comments

@RainerAtSpirit
Copy link
Contributor

Running a local version of xstate-viz like in the public folder works, but it would be even better if we could provide a <Preview machine={myMachine} /> component that allows passing in a machine instance regardless if developed in typescript or javascript.
In addition when using <Preview /> the <StateChart previewOnly={true}> component would remove some functionality that is not required when running locally.

See this branch for a POC
https://github.com/RainerAtSpirit/xstate-viz/pull/new/previewOnly

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant