erikras / erikras/react-redux-universal-hot-example

Correct approach to routes, params and components

Open
#746 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.