FIX: Ensure tag topic lists are not scrolled to an incorrect position (#12805)
When navigating from a ‘discovery’ topic list to a ‘tags’ topic list, the scroll position from the ‘discovery’ list was being used by the tag list. That meant the user would be taken to a random point in the list, and not scrolled to the top.
Non-tag topic lists were working fine because we only apply the ‘cached’ logic (and by extension, the saved scroll location) when the user clicks ‘back’ in the browser. In the code, this is referred to as
This commit takes the
isPoppedState logic from the regular topic lists, and applies it to the tag topic lists.
GitHub sha: 890b06b1