Skip to main content

Interface: DecodeOptions

Options of Serializer.decodeValue and Serializer.decodeCall.

Properties​

generateNewIds?​

optional generateNewIds?: boolean;

Pass true to give new model ids to the models decoded from snapshots (nested ones included), as fromSnapshot(snapshot, { generateNewIds: true }) does, e.g. on a server that accepts snapshots from clients. References still resolve to the nodes they point to. Defaults to false (the ids in the snapshots are kept).