DEV Community

Discussion on: How to sync component state with React Router

harshitjoshi9152 profile image

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

baruchiro profile image
Baruch Odem Author

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.