erikras / erikras/react-redux-universal-hot-example
Correct approach to routes, params and components
Open
- Dominant language
- JavaScript
- Stars
- 12.1k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
I'm trying to figure out the best way to handle loading data from a route param. Let's say I have a list of items rendered in a component and I have links to a detail page (with id's as params). Is it the best method to read the params in a componentDidMount method, then make an API call and wait for data to populate? Is this the general way of doing this? Is there another way?
Contributor guide
Assessment
This issue has not been assessed yet.