peer-base / js-delta-crdts

Delta State-based CRDTs in Javascript
192 stars 16 forks source link

Keep removals in ormap state #23

Closed jimpick closed 5 years ago

jimpick commented 5 years ago

Removals were working when applying a delta, but they weren't being retained in the state. So applying a state wouldn't remove entries from the ormap.

jimpick commented 5 years ago

I'm setting 'cc' to null for the values in the map in the state. I hope that is correct.

pgte commented 5 years ago

I believe that’s correct, as the cc used is the root cc.

pgte commented 5 years ago

@jimpick thanks! Landed v0.5.3.