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

Updating array mapped via the mapping plugin replaces the contents of the array. #187

Open
vishnurk opened this issue Jan 23, 2014 · 0 comments

Comments

@vishnurk
Copy link

This is more of a question -

I have an object in my view model that gets updated with array data from the server using the mapping plugin.

Contents of the mapped observable array are displayed in a table. Now, the user has the capability to 'load more', which triggers a request to the server and gets the next
'n' rows of data from the server.

Updating the view model object using the mapping plugin with new data causes the existing data to be replaced. My goal is to make the mapping plugin append the new data to the existing observable array.

Wondering if this is possible using a custom 'create' or an 'update' callback? If yes, some examples would really help.

For now, as a workaround - I've resorted to manually pushing data into the view model object.

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

1 participant