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

Some guidance re: query parameters #442

Open
StevenLangbroek opened this issue Feb 25, 2015 · 1 comment
Open

Some guidance re: query parameters #442

StevenLangbroek opened this issue Feb 25, 2015 · 1 comment

Comments

@StevenLangbroek
Copy link

Hey guys,

I'm having some trouble getting query parameters and fetching to work properly. What I'm trying to build is quite easy in Backbone:

  • Forward query parameters onto Collection fetch call
  • In parse, I set params based on response (page for current page, pages for total pages)
  • When fetching again, increment page counter by one and fetch
  • Then append models to collection, and append a view for each model to the collection view

What I'm completely lost about, is how do I re-fetch the collection on client after getting the initial payload from server... (let's say for simplicity's sake, binding it as an event on a "Next Page" button).

I've tried several things (among other things overwriting fetch on the collection), but can't figure out a sensible way to do this in Rendr. Any guidance would be greatly appreciated, and I'll gladly turn it into a PR documenting it.

@saponifi3d
Copy link
Contributor

What eversion of rendr are you using? I found a bug with 1.0.0 (and earlier) that when you say fetch the params get overridden with an empty object :( - it is fixed in 1.0.1

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

2 participants