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

workflow.toJson seems to yield control to React before completion, possibly due to internal asynchrony #179

Open
dfiai opened this issue Aug 31, 2023 · 0 comments

Comments

@dfiai
Copy link

dfiai commented Aug 31, 2023

First guys thank you for the great instrument it helps me a lot!

What happened:
I'm utilizing workflow.toJson and workflow.fromSource to duplicate the workflow. The behavior I'm observing is that when I invoke workflow.toJson, it appears to internally employ an asynchronous process. This seems to result in React relinquishing control before the toJson method has completed its execution. Maybe the problem is in validation lib that you are using?

What you expected to happen:
toJson method should work sync

How to reproduce it:

Anything else we need to know?:

Environment:

google chrome, windows, ubuntu

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

No branches or pull requests

1 participant