Is there a way to get react router to *NOT* refresh api data on return to page
So I have a page that takes 5 seconds to load the data from an API. I put the results in a table. The user clicks one of the rows, it takes them to another route with details about that row. They dont see what they want and return to the 1st page.
The page refreshes and it re-pulls the API data for another 5 seconds.
Is there a way to call the first page back and the data/state still be there? Seems like it works like that in react-native.
Obviously I can implement pagination / caching etc.. But just curious if there's something Im missing.
from Recent Questions - Stack Overflow https://ift.tt/2KGEj9v
https://ift.tt/eA8V8J
Comments
Post a Comment