Home > @uniformdev/mesh-sdk-react > serializeVariablesEditorState

serializeVariablesEditorState() function

Serializes a Lexical variables-editor state (as a Lexical AST) to a Uniform-variable-reference formatted string Note: if no content is in the editor state, undefined will be returned.

Signature:

Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

editorState

</td><td>

EditorState

</td><td>

</td></tr> </tbody></table> Returns:

string | undefined