Skip to content

fix: trending feed not reconnecting after app resume#484

Merged
barrydeen merged 1 commit intomainfrom
fix/trending-reconnect-race
Apr 23, 2026
Merged

fix: trending feed not reconnecting after app resume#484
barrydeen merged 1 commit intomainfrom
fix/trending-reconnect-race

Conversation

@barrydeen
Copy link
Copy Markdown
Owner

Summary

  • Remove the preConnectEphemeral optimization from the relay reconnect path.
  • It created a race: the ephemeral was still mid-connect when subscribeTrendingFeed fired its REQ, leaving the subscription stuck on Connecting.
  • The direct metric-switch path never used preConnect and worked fine — this change makes the reconnect path take the same code path.

Test plan

  • Open Trending feed, minimize app, reopen — feed reconnects and loads notes.
  • Repeat with Trending → Users mode.
  • Switching between trending metrics still works.
  • Other feeds (Follows, For You, Relay, List) still reconnect on resume.

Remove the preConnectEphemeral optimization from the reconnect path. It
created a race where the ephemeral was mid-connect when subscribeTrendingFeed
fired its REQ, leaving the subscription stuck on Connecting. The direct
metric-switch path (no preConnect) worked fine, so match it.
@barrydeen barrydeen merged commit f0f728d into main Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant