-
Can you provide a method to find the corresponding JsonNode through id: ITimestampStruct, so as to do some operations such as undo/redo with the information in JsonCrdtPatchOperation? |
Beta Was this translation helpful? Give feedback.
Answered by
streamich
Jun 8, 2024
Replies: 1 comment
-
It is already possible, there is the index object which stores all the nodes by ID: model.index.get(id); If you console.log('' + model); will output something like this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
streamich
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
It is already possible, there is the index object which stores all the nodes by ID:
If you
console.log
some model, you will also see the index printed:will output something like this: