fix: force React to remount tab content when switching tabs

- Add key prop based on activeTab to wrapper div
- Forces complete unmount/remount of content when switching tabs
- Prevents DOM element reuse that was causing blog posts to bleed into highlights tab
This commit is contained in:
Gigi
2025-10-18 22:20:27 +02:00
parent 1d6595f754
commit 340913f15f

View File

@@ -487,7 +487,9 @@ const Explore: React.FC<ExploreProps> = ({ relayPool, eventStore, settings, acti
</div>
</div>
{renderTabContent()}
<div key={activeTab}>
{renderTabContent()}
</div>
</div>
)
}