Avoid recycling comments stores for different entities #4451
Ticket(s) / Related Merge Requests
Summary of Changes
Changed the logic of the BottomContent component to avoid reusing the stores with a different entity.
I used a reference
instead of a state
in order to avoid an unneeded re-render
I created a useForceRender hook to imperatively control when I want the component to render
Testing Considerations
Check issue
Regression Scope
It should affect only comments on the feeds (nor the full activity screen or blog view screen)
Platform Affected (web, mobile, etc)
Both
Developer Testing Completed
Tested on the iOS simulator
Screenshots
Does this impact
-
Localization -
Dark/light mode -
Guest mode