You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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, afromPromise
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
The text was updated successfully, but these errors were encountered: