Skip to content

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

Description

@dfiai

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    legacyRelated to the pre-v1.0.0 Serverless Workflow specification

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions