diff --git a/src/components/Explore.tsx b/src/components/Explore.tsx index 44d41211..05966c6e 100644 --- a/src/components/Explore.tsx +++ b/src/components/Explore.tsx @@ -291,7 +291,7 @@ const Explore: React.FC = ({ relayPool, eventStore, settings, acti } finally { // loading is already turned off after seeding } - }, [relayPool, activeAccount, eventStore, settings, visibility.nostrverse, followedPubkeys]) + }, [relayPool, activeAccount, eventStore, visibility.nostrverse]) useEffect(() => { loadData() diff --git a/src/components/Me.tsx b/src/components/Me.tsx index dd04a089..6b99aa3d 100644 --- a/src/components/Me.tsx +++ b/src/components/Me.tsx @@ -57,7 +57,7 @@ const Me: React.FC = ({ const activeAccount = Hooks.useActiveAccount() const navigate = useNavigate() const { filter: urlFilter } = useParams<{ filter?: string }>() - const [activeTab, setActiveTab] = useState(propActiveTab || 'highlights') + const activeTab: TabType = propActiveTab || 'highlights' // Only for own profile const viewingPubkey = activeAccount?.pubkey @@ -129,12 +129,7 @@ const Me: React.FC = ({ } }, []) - // Update local state when prop changes - useEffect(() => { - if (propActiveTab) { - setActiveTab(propActiveTab) - } - }, [propActiveTab]) + // activeTab is derived from route prop; no local sync needed // Sync filter state with URL changes useEffect(() => {