blockly > Block > saveExtraState
Block.saveExtraState property
An optional serialization method for defining how to serialize the block's extra state (eg mutation state) to something JSON compatible. This must be coupled with defining loadExtraState
.
Signature:
saveExtraState?: (doFullSerialization?: boolean) => any;