Skip to content

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

Open
@dfiai

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

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