I have an array of objects that are represented in a CodeMirror component. I'm trying to work out how to map changes in the CodeMirror to the object. I'm using a RangeSet to hold the underlying object. I was expecting I could use RangeSet.map() to apply the changes from the CodeMirror onto the object RangeSet. I'm not seeing that happen.
Is there an example that can help me understand how to handle this use case in a good way?
I have an array of objects that are represented in a
CodeMirror
component. I'm trying to work out how to map changes in theCodeMirror
to the object. I'm using aRangeSet
to hold the underlying object. I was expecting I could useRangeSet.map()
to apply the changes from theCodeMirror
onto the objectRangeSet
. I'm not seeing that happen.Is there an example that can help me understand how to handle this use case in a good way?