Skip to content

fix: don't fetch dailyHeadlines until onboarding is complete#6292

Merged
capJavert merged 1 commit into
mainfrom
fix/gate-daily-headlines-on-onboarding
Jul 8, 2026
Merged

fix: don't fetch dailyHeadlines until onboarding is complete#6292
capJavert merged 1 commit into
mainfrom
fix/gate-daily-headlines-on-onboarding

Conversation

@capJavert

@capJavert capJavert commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Problem

The dailyHeadlines GraphQL query seeds channel digest follows from the user's onboarding tags on the backend (seedHeadlineChannelsForUser). We found a production user where the query fired ~0.5s before their onboarding tags were persisted, so the backend resolved zero tags and permanently marked them as backfilled with no follows.

Fix

Gate the dailyHeadlines fetch in CoverTopics behind isOnboardingComplete (from useOnboardingActions), so the query doesn't fire mid-onboarding. While disabled, the existing skeleton placeholders render as before. CoverTopics is the only place this query is fetched.

Companion backend fix (stops marking users backfilled on an empty resolve, so affected users self-heal on the next call): dailydotdev/daily-api#3991

Preview domain

https://fix-gate-daily-headlines-on-onbo.preview.app.daily.dev

@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
daily-webapp Ready Ready Preview Jul 8, 2026 10:26am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
storybook Ignored Ignored Jul 8, 2026 10:26am

Request Review

The dailyHeadlines query seeds channel digest follows from the user's
onboarding tags on the backend. When it fires mid-onboarding it can
race the tag writes, resolve zero tags, and (before the api fix) mark
the user as backfilled without any follows. Gate the fetch behind
isOnboardingComplete so it only runs once onboarding is done.
@capJavert capJavert force-pushed the fix/gate-daily-headlines-on-onboarding branch from 45234d1 to 48c23be Compare July 8, 2026 10:23
@capJavert capJavert enabled auto-merge (squash) July 8, 2026 10:25
@capJavert capJavert disabled auto-merge July 8, 2026 10:28
@capJavert capJavert merged commit 6d89f58 into main Jul 8, 2026
10 of 12 checks passed
@capJavert capJavert deleted the fix/gate-daily-headlines-on-onboarding branch July 8, 2026 10:28
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