feathersjs-ecosystem / feathers-reactive

Reactive API extensions for Feathers services
MIT License
216 stars 37 forks source link

Diff state #61

Open thaiat opened 7 years ago

thaiat commented 7 years ago

Hi,

I started using feathers-reactive with vuex and in a standard CRUD scenario everything works fine. Now i m trying to make some canvas annotations (annotation is the feathers crud service) real time. In the subscribe i get the whole list of annotations whenever they change, but it is not very efficient to draw all of them again in the canvas for each change. Is there a way to only get the diff list between 2 subscribes ?

thaiat commented 7 years ago

anyone ?

damylen commented 6 years ago

Have you found a way to do this? I'm also curious.

Artaud commented 4 years ago

You could just pipe the resulting observable through .pairwise() operator and diff it yourself.