rocicorp / repc

The canonical Replicache client, implemented in Rust.
Other
30 stars 7 forks source link

JSON patch compatible clear #213

Closed arv closed 4 years ago

arv commented 4 years ago

This adds special code for dealing with {"op":"replace","path":"","value":{}} which is what we use to clear the map.

We still treat {"op":"remove","path":"/"} as clear for now but we should update the other layers to not use that.

Towards #124

aboodman commented 4 years ago

Thanks for fixing my crappy code.

arv commented 4 years ago

I'm in favor for the more elaborate dance.

phritz commented 4 years ago

I'm in favor for the more elaborate dance.

yeah at some point soon we must be doing that dance at all times, might as well start now

arv commented 4 years ago

diff-server got pushed... committing