Interview practice question
Showing a live unread notification count
Frontend Engineering · State Management and Data Fetching · Intermediate
How would you show an unread notifications count in the header that stays up to date?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Initial fetch of count.
- Real-time updates via SSE/WebSocket or polling.
- Update cache on read actions.
- Sync across tabs.
- Pause polling when hidden.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.