I have react container which is connected to an 'items' reducer. By navigating to another page, such as user profile, I want to get the user's 'items' list from the server and change the state. The issue is, that if I navigate from the main page, the items state is already filled with data, then on the user page I see the old for couple of seconds until it is changed from the api call. I was thinking about creating new reducer for the userItems, but then, if I will navigate to another user page, I will see the previous userItems for couple of seconds.
The solution is to fetch the data and keep it only in the react component state? And not redux?
Thanks.