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

Bug: seems non-JSON serializable values interfere with inspector operation #5114

Open
aryzing opened this issue Nov 3, 2024 · 2 comments
Open
Labels

Comments

@aryzing
Copy link

aryzing commented Nov 3, 2024

XState version

XState version 5

Description

Seems that when using non-JSON serializable values within a machine the inspector @statelyai/inspect stops updating its UI or showing values in its explorer. For example, a fromPromise that returns a BigInt will "crash" the inspector UI and it will not update when the promise completes, even if the internal machine state did transition.

Expected result

Was expecting the inspector to be capable of handling all values.

May not be worth the effort to add support for more value types, although would definitely help if this constraint was documented (if it isn't already? I couldn't find it).

Actual result

No reactive UI updates after the machine processes a non-JSON serializable value.

Reproduction

n/a

Additional context

No response

@aryzing aryzing added the bug label Nov 3, 2024
@aryzing aryzing changed the title Bug: seems non-JSON serializable values interfere with machine operation Bug: seems non-JSON serializable values interfere with inspector operation Nov 3, 2024
@davidkpiano
Copy link
Member

Can you share a small repro? 🙏

@aryzing
Copy link
Author

aryzing commented Nov 5, 2024

Sure, give this one a try,

https://github.com/aryzing/repro-xstate-bigint

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

No branches or pull requests

2 participants