AmpersandJS / ampersand-rest-collection

ampersand-collection with REST and lodash mixins for easy use with REST APIs.
http://ampersandjs.com/docs#ampersand-rest-collection
MIT License
23 stars 11 forks source link

Issues when destroying multiple models from an ampersand-rest-collection #7

Closed genaro-picazo closed 9 years ago

genaro-picazo commented 10 years ago

I have an instance of a rest collection with multiple models. When I request to destroy models from said collection via model.destroy(...), the first delete works, but subsequent ones fail. Note that I am trying to avoid re-fetching the entire collection between deletes.

I've created a gist to outline what I am doing and the results that I am seeing: https://gist.github.com/gpicazo/f94e61e3b085f9f5840b

In the comments, I've re-stated what the issue is and how I am currently working around it.

genaro-picazo commented 10 years ago

Today I started working on this project from another computer. The project was initially started on a Mac , which is where I was seeing the issue. I am now working on a Windows machine and the issue is not occurring. It might have to do with my npm packages being out of date on my Mac... I'll test later today to see if clearing my npm cache, updating and re-installing the project packages fixes the issue.

latentflip commented 10 years ago

Hey @gpicazo did you get any further with this?

HenrikJoreteg commented 9 years ago

Given the age and lack of a clearly identifiable problem here i'm going to closes this.