meteor-collection-hooks icon indicating copy to clipboard operation
meteor-collection-hooks copied to clipboard

Latency Compensation

Open veered opened this issue 9 years ago • 3 comments

I am modifying the modifier passed into a before.update hook and noticed that these changes are being passed to the update hook on the server. So the client and the server aren't processing the same modifier; the server only has the modifier outputted by the client side hook. This is related to the discussions here https://forums.meteor.com/t/meteor-collection-hooks-confused/748/7.

The solution on the forum is to wrap all update calls in a Meteor method, which gives us the usual latency compensation. Unfortunately this isn't an option when using an external package (like Autoform). Is there any other way to get proper latency compensation with this package?

veered avatar Aug 17 '15 00:08 veered

Unfortunately this isn't an option when using an external package (like Autoform).

This is still an option when using autoform, see the autoform docs on using methods. Autoform can call a Meteor method instead of calling the update function itself.

ThaumRystra avatar Nov 09 '15 07:11 ThaumRystra

I'll try and add a note about this in the docs.

I'm also thinking that an option to change the current behaviour to the expectation in this issue, would be nice.

zimme avatar Feb 12 '17 10:02 zimme

For the documentation part, it looks like duplicate of #65

StorytellerCZ avatar Oct 08 '19 16:10 StorytellerCZ