I'm trying to persist some data in Node.meta, export the editor toJSON, and then have the ability to reconstruct with fromJSON (including each node's data in both data and meta) . I'm currently using Node.data as a separate collection of data, and this works well. However, it doesn't seem that meta is persisted in the same way and a peek into the source confirms this: https://github.com/retejs/rete/blob/dd11a09783bbe038377eb1c3cb42774f7f9b264a/src/node.ts#L106-L113
I'm trying to persist some data in
Node.meta
, export the editortoJSON
, and then have the ability to reconstruct withfromJSON
(including each node's data in bothdata
andmeta
) . I'm currently usingNode.data
as a separate collection of data, and this works well. However, it doesn't seem thatmeta
is persisted in the same way and a peek into the source confirms this: https://github.com/retejs/rete/blob/dd11a09783bbe038377eb1c3cb42774f7f9b264a/src/node.ts#L106-L113Is the only way to persist data with
Node.data
?