SpinTheMic
Pro

Interview practice question

Users see outdated data after returning to a tab

Frontend Engineering · State Management and Data Fetching · Beginner

Users leave your app open in a tab and later see outdated information. How would you keep data fresh?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Refetch on window focus.
  • Stale time / background refetching.
  • Polling for critical data.
  • Real-time updates if needed.
  • Data libraries provide these options.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics