You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(replay): Fix error state quickly flashing when loading replay (#72823)
This fixes the error state that quickly flashes when loading a replay.
The `useReplayData` hook makes ~5 requests, but they do not all happen
in parallel. The fetching state ends up looking like the following:
* fetch replay, fetch extra errors, fetch platform ("fetching" == true)
* above requests finish ("fetching" == false)
* fetch attachments, fetch extra errors, fetch platform errors
("fetching" == true)
This intermittent fetching state means that we have [components that
erroneously
render](https://github.com/getsentry/sentry/blob/78334b95bc5ff69816fcaeafff8f67fadf0727c7/static/app/components/replays/replayView.tsx#L43)
an error state because it believes API requests have completed and that
the data is missing.
To test:
Loading a replay should no longer flicker and should no longer flicker
with a red error screen. We use `useReplayReader` in quite a few places
besides replay details, but I think all of them should benefit from this
change.
Closes#70077
---------
Co-authored-by: Michelle Zhang <[email protected]>
0 commit comments