DEV Community

Discussion on: How to sync component state with React Router

Collapse
 
harshitjoshi9152 profile image
Harshit

is it okay to do this performace wise ? in some cases we could be making heavy api calls to servers.

Collapse
 
baruchiro profile image
Baruch Odem

Why? In which case it will make redundant API calls?
If you're using it as a state, your component will work the same, and only the URL updating will be different.