Skip to content

Refetch empty feed on focus#7139

Merged
gaearon merged 1 commit into
mainfrom
follow-invalidate
Dec 17, 2024
Merged

Refetch empty feed on focus#7139
gaearon merged 1 commit into
mainfrom
follow-invalidate

Conversation

@gaearon
Copy link
Copy Markdown
Contributor

@gaearon gaearon commented Dec 17, 2024

Previously, if the feed is empty, you'd only see it refreshed on pull-to-refresh. For example, if you have a new account, and you follow someone on Discover, your Following tab would remain empty until you pull (but it would have a polling indicator after a while).

After the fix, an empty Following would auto-refresh on focus.

Test Plan

refresh-empty.mov

Confirm this only happens on empty feed. It shouldn't auto-refresh a feed on every focus.

@arcalinea arcalinea temporarily deployed to follow-invalidate - social-app PR #7139 December 17, 2024 10:47 — with Render Destroyed
@github-actions
Copy link
Copy Markdown
Contributor

Old size New size Diff
6.78 MB 6.78 MB 29 B (0.00%)

@gaearon gaearon merged commit 31d2aa6 into main Dec 17, 2024
drash-course added a commit to drash-course/social-app that referenced this pull request Dec 18, 2024
* main: (58 commits)
  Fix tests
  Layout tweaks (bluesky-social#7150)
  Trending (Beta) (bluesky-social#7144)
  Fix emoji picker position (bluesky-social#7146)
  Tweak Follow dialog Search placeholder (bluesky-social#7147)
  New progress guide - 10 follows (bluesky-social#7128)
  Pipe statsig events to logger (bluesky-social#7141)
  Fix notifications borders (bluesky-social#7140)
  Refetch empty feed on focus (bluesky-social#7139)
  Read storage on window.onstorage (bluesky-social#7137)
  [ELI5] Tweak wording on the signup screen (bluesky-social#7136)
  alf error screen (bluesky-social#7135)
  add safe area view to profile error screen (bluesky-social#7134)
  Adjust gates (bluesky-social#7132)
  disable automaticallAdjustsScrollIndicatorInsets (bluesky-social#7131)
  Bump more native deps (bluesky-social#7129)
  Update more Expo packages (bluesky-social#7127)
  feat: widen recent search profile link for mobile devices (bluesky-social#7119)
  Fix video uploads on native (bluesky-social#7126)
  Fix post time localization on Android (bluesky-social#6742)
  ...

# Conflicts:
#	src/view/com/profile/ProfileSubpageHeader.tsx
#	src/view/screens/ProfileList.tsx
Signez pushed a commit to Signez/bsky-social-app that referenced this pull request Dec 26, 2024
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.

3 participants