Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not fetching all models from collection #159

Open
dottodot opened this issue Oct 21, 2014 · 4 comments
Open

Not fetching all models from collection #159

dottodot opened this issue Oct 21, 2014 · 4 comments

Comments

@dottodot
Copy link

In my Backbone Marionette app I'm adding items to the localstorage successfully but it's not returning all the models.

In my case an item is added to my cart collection and this takes you to the cart page which should list all the items in the cart. The first item added works but when a second item is added and you are taken to the cart only the latest one show.

This also only seems to happen when navigating to the cart page using a trigger, if I cmd + R refresh the page the full collection is returned.

Bit confused as to what is going on.

@dottodot
Copy link
Author

OK I've found that if I set an id rather than using the guid it works as it should, sometimes i.e about 50%

@nddery
Copy link

nddery commented Jul 31, 2015

Having the same problem, this seems to be random, sometimes, the full collection is returned, some other time, just a part of it. The full collection is in local storage. As dotdotdot mentionned, reloading the page the full collection is returned.

@munvier
Copy link

munvier commented Mar 6, 2016

Same here, i've a collection. I add a model in it. Seems good on the View, I switch to an another view, fetch the collection, new models are missing. But if i refresh the page, my new models are here ....

EDIT : the remove works properly, but new items are missing. I must be doing wrong the add method...

@yahuarkuntur
Copy link

yahuarkuntur commented Jun 12, 2018

Looks like is the same as #177

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants