Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
could the result of a server query be mutable? #370
I am facing many times with this issue, which seems to be a common situation when client request to paginated/offset resources.
A solution/workaround is to create a mutable array as documented on this stackoverflow post.
I don't know if it could be possible/suitable to improve the result query to be mutable.
I'm sorry, I'm not sure what you mean with your suggestion? Likewise, I'm trying to append some objects to an ArrayController that was created with data from Ember Data and I get the same error when I call addObjects: https://gist.github.com/4083980
The linked stackoverflow post above gets around this by having a member variable shadow the "real" content attribute, which feels like it should be an unnecessary hack.