Backbone.TableView icon indicating copy to clipboard operation
Backbone.TableView copied to clipboard

Multiple fast requests leave the table in inconsistent state

Open jpbottaro opened this issue 13 years ago • 2 comments

Since the ordering of the incoming responses of parallel requests is unknown, and the table is updated when the 'reset' event is fired in the collection, it can reach inconsistent states.

We should only care about the last request (as per user input), and cancel/ignore the rest.

jpbottaro avatar Oct 22 '12 23:10 jpbottaro

There is an extension, https://github.com/amccloud/backbone-safesync that handles this well.

sontek avatar Nov 12 '12 14:11 sontek

Thanks sontek! I checked it out and it seems cool, but I'd like this feature to be part of the library, without adding a dependency.

As soon as I get the time I'll fix the issue.

jpbottaro avatar Nov 13 '12 19:11 jpbottaro