vue-meteor-tracker icon indicating copy to clipboard operation
vue-meteor-tracker copied to clipboard

Example for using cursor.observeChanges in a Vue component

Open karlitos opened this issue 6 years ago • 0 comments
trafficstars

I could not find any example of how to use cursor.observeChanges in a Vue component.

Reason

I have a component encapsulating a interactive data visualization. This visualization is not reactive, the data it relies on needs to be transformed first and the layout will be computed subsequently . On the other hand it is possible to perform efficient atomic operations to modify the layout afterwards. This is where cursor.observeChanges comes in handy.

Basically I need automatic subscription with dynamic parameters which will be re-called reactively when the container component props changes. When the subscription is ready I need to create a cursor with dynamic parameter and observe the changes with the observeChanges method.

karlitos avatar Nov 26 '18 08:11 karlitos