Skip to content

fix: bulletin notification flickering #3737

Open
esaugomez31 wants to merge 2 commits intomainfrom
fix--bulletin-notification-flickering
Open

fix: bulletin notification flickering #3737
esaugomez31 wants to merge 2 commits intomainfrom
fix--bulletin-notification-flickering

Conversation

@esaugomez31
Copy link
Copy Markdown
Collaborator

@esaugomez31 esaugomez31 commented Mar 26, 2026

Summary

When a push notification arrives while the app is in the foreground, the bulletin card now appears immediately without needing to restart the app.

Problem

The onMessage handler in push-notification.tsx only logged the incoming FCM message but did not refetch the bulletins query. This caused the bulletin card to not appear until the app was restarted. Closes #3723.

Changes

  • Added client.refetchQueries({ include: [BulletinsDocument] }) to the onMessage foreground handler
  • Added client to the useEffect dependency array
  • Added tests for the push notification component

Copy link
Copy Markdown
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@esaugomez31 esaugomez31 changed the title fix: refetch bulletins on foreground push notification fix: bulletin notification flickering Mar 26, 2026
@esaugomez31 esaugomez31 marked this pull request as ready for review March 26, 2026 22:00
@esaugomez31 esaugomez31 self-assigned this Mar 26, 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.

fix(notifications): flickering UI in staging

1 participant