Interview practice question
Telling users the difference between "no results" and "something broke"
Frontend Engineering · State Management and Data Fetching · Beginner
Your search page shows a blank area both when there are no results and when the request fails. How would you improve it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Separate empty and error states.
- Empty: explain, suggest changes.
- Error: plain message, retry button.
- Keep the query visible.
- Log errors for the team.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.