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

Second PUT call sends old data #772

Closed
miraage opened this issue Jul 2, 2014 · 6 comments
Closed

Second PUT call sends old data #772

miraage opened this issue Jul 2, 2014 · 6 comments

Comments

@miraage
Copy link

miraage commented Jul 2, 2014

I receive data via Restangular.all('notices').getList().$object.
Then I do PUT request on some element - works as expected.
But other PUT requests on this element send old data.

What I do wrong?

@dmackerman
Copy link

Are you making a copy of what you're sending? I've never had this issue.

@Climax777
Copy link

May be related to #811

@hartz89
Copy link

hartz89 commented Mar 31, 2016

I was having this issue because I was using angular.copy() to copy an element into scope for editing prior to the PUT rather than using Restangular.copy(). There's a section in the docs about this.

@daviesgeek
Copy link
Collaborator

This sounds like a duplicate of #811. @miraage can you provide an example?

@daviesgeek
Copy link
Collaborator

I'm going to go ahead and close this. @miraage if there's still an issue, feel free to re-open the issue

@miraage
Copy link
Author

miraage commented Jun 21, 2016

@daviesgeek i've been figured out this issue by switching $object to then(result => ...).

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

No branches or pull requests

5 participants