Hi all,
I'm using the @blockly/block-shareable-procedures package and Blockly 11.2.1 to create custom procedure blocks. Everything works up until the point I serialize the workspace and load it back in.
I'm adding new procedure models with the following code within my custom function definition block:
this.model = new ObservableProcedureModel(this.workspace, "my_function");
this.workspace.getProcedureMap().add(this.model);
Loading the serialized state fails because Blockly is trying to reference a procedure id, however it does not exist in the serialization. It seems only the blocks get serialized.
Is there an extra step I am missing in order to include procedures within the serialization?
Thanks!