DEV Community

Discussion on: Redux 4 + TypeScript: A type-safe approach

Collapse
 
lavinj87 profile image
Jorge Lavin • Edited

This is an extremely useful article, thank you very much.

I'm applying its ideas to a personal project with a lot of success

How would you handle fetching a single Hero if accessed via url instead of fetching all Heroes?

Let's say that you access heroes/:heroName before accesing heroes. Then there is no heroes fetching and the component will need to fetch this single Hero.