iron-meteor / iron-router

A client and server side router designed specifically for Meteor.
MIT License
1.98k stars 413 forks source link

Finer grained reactivity for getParams() #1239

Open hpx7 opened 9 years ago

hpx7 commented 9 years ago

Sometimes I would like to rerun a function when the query changes, but not the hash. Currently, there doesn't seem to be a way to do this.

Maybe we could specify fields like

Router.getParams({fields: {query: 1}})

This is also how Meteor lets us specify finer grained reactivity.

hpx7 commented 9 years ago

See also https://github.com/meteorhacks/flow-router#routercurrent-is-evil

chrisbutler commented 8 years ago

@hpx7 i'd love to implement this