Closed nguyenngoclongdev closed 1 year ago
Hello @nguyenngoclongdev! You can use useGlobalEditor
only inside the editor. To read a value from the editor outside you should read your definition.
@b4rtaz Thank you for the quick answer. However, I am using the sequential-workflow-designer
+ sequential-workflow-editor
, and I am unable to read the value of the global editor with useGlobalEditor
hook.
You cannot use the useGlobalEditor()
hook with the sequential workflow editor, because it doesn't use React hooks.
To read values provided by the root editor you should read the root properties of your definition (Definition { properties: ... }
).
@b4rtaz thank you for your answear.
In react app, how to get the value of global editor? I try to use hook useGlobalEditor, but throw exception.