pheuter / essential-react

A minimal skeleton for building testable React apps using Babel
MIT License
2.03k stars 131 forks source link

Include query in fetchData #17

Closed tupy closed 2 years ago

coveralls commented 9 years ago

Coverage Status

Coverage remained the same at 97.5% when pulling db671bdd0aeedaafbaa1ce766353c1aa5222fd27 on tupy:patch-1 into 584e52b72ac1b490c2ffff7220563e4838c1a417 on pheuter:master.

pheuter commented 9 years ago

Hm, what would be an example of when one would use state.query to fetch data over state.params?

tupy commented 9 years ago

For instance, a feed of documents that it's possible to filter/sort using a query param:

/feed/new-feed-1?filter=tag1&sort=date

The react-router receive these params and fetchData() should send them to load the correct data.