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

Infinite remote pagination return same page data #243

Closed
FutoRicky opened this issue Apr 26, 2018 · 1 comment
Closed

Infinite remote pagination return same page data #243

FutoRicky opened this issue Apr 26, 2018 · 1 comment

Comments

@FutoRicky
Copy link

When using the infinite remote pagination each time I loadNextPage on the pagedArray it makes the call successfully, I get the correct payload for that page but pagedArray does not add the new data, instead it add a duplicate of the initial 1st page data.

I'm doing something like this:

    ...
  let content = PagedRemoteArray.create({modelName: 'model_name',
    store: this.store,
    page: 1
  });
  this.set('content', content);
    ...

  pagedContent: pagedArray("content", {infinite: true}),

  actions: {
    loadNext: function() {
      this.get('pagedContent').loadNextPage();
    }
  }

Am I doing something wrong or is this a bug?

@FutoRicky
Copy link
Author

nvm. I was def doing something wrong on the server

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