Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: invalidate content preference from tag and source #4087

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

capJavert
Copy link
Contributor

@capJavert capJavert commented Jan 20, 2025

Changes

Since new feed settings are using content preference queries we want to invalidate specific queries for source/tag block/follow so visiting feed settings correctly refetches data.

Events

Did you introduce any new tracking events?

Experiment

Did you introduce any new experiments?

Manual Testing

Caution

Please make sure existing components are not breaking/affected by this PR

Preview domain

https://as-915-invalidation-tag-source.preview.app.daily.dev

Copy link

vercel bot commented Jan 20, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
daily-webapp ✅ Ready (Inspect) Visit Preview Jan 21, 2025 9:58am
1 Skipped Deployment
Name Status Preview Updated (UTC)
storybook ⬜️ Ignored (Inspect) Jan 21, 2025 9:58am

Comment on lines +128 to +131
invalidateContentPreferences({
entity: ContentPreferenceType.Keyword,
subQuery: RequestKey.UserFollowing,
});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create new function without debounce since invalidation happens for different queries then the ones shown.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debounce also does not support function having args

@capJavert capJavert enabled auto-merge (squash) January 21, 2025 09:56
@capJavert capJavert merged commit b852ae5 into main Jan 21, 2025
10 checks passed
@capJavert capJavert deleted the AS-915-invalidation-tag-source branch January 21, 2025 10:02
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