Upon clicking on a collection item, I essentially go to another page with a dynamic ID in the url.
Then, this ID is being used by a collection to fetch only the current selected user.
But, the ID and the collection’s result are out-of-sync when doing that multiple times in the same session. Refreshing fixes the issue and reload the proper user’s info.
I’m not sure if it’s a bug, a race condition, or something I did wrong.
Can you call the action fetchCollection after you updated the currentUser variable ? Your collection filtering on the id should be up to date and the page displaying it too, you can call it on page load after the redirection for example