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

customizations not persisting #34

Closed
kellyselden opened this issue Jun 17, 2015 · 1 comment · Fixed by #35
Closed

customizations not persisting #34

kellyselden opened this issue Jun 17, 2015 · 1 comment · Fixed by #35

Comments

@kellyselden
Copy link
Collaborator

I'm trying this out in my app.

export default Ember.Route.extend(InfinityRoute, {
  model() {
    return this.infinityModel('user', { perPage: 10, startingPage: 1 });
  },

  perPageParam: 'pageSize'
});

The first request is

http://localhost/api/v1/users?page=1&pageSize=10

but the second request is

http://localhost/api/v1/users?page=2&per_page=10

The model hook is not getting called the second time if that helps.

@hhff
Copy link
Collaborator

hhff commented Jun 17, 2015

Got it. Will look into it when I get some spare time!

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

Successfully merging a pull request may close this issue.

2 participants