rendrjs / rendr

Render your Backbone.js apps on the client and the server, using Node.js.
MIT License
4.09k stars 312 forks source link

Some guidance re: query parameters #442

Open StevenLangbroek opened 9 years ago

StevenLangbroek commented 9 years ago

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:

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 commented 9 years ago

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