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
ref: Streamline loading replays for hydration diffs in Issue Details (#88028)
Before we had two 'placeholder' thing that would render while we wait
for the hydration diff preview to load up:
- A `<LoadingIndicator />` while we're lazy-loading the
`replayDiffContent.tsx` file
- Then `<Placeholder/>` while we load the replay data over ajax
This resulted in janky loading swapping one placeholder for another.
Also, we weren't properly handling all loading states before, so if the
replay was missing or archived it looked janky. Now that
`<ReplayLoadingState>` is in place, all cases are handled. For example:
| Before | After |
| --- | --- |
| <img width="846" alt="SCR-20250326-mjkc"
src="https://github.com/user-attachments/assets/68053fcf-5a2d-44aa-850f-f85255e5526e"
/> | <img width="841" alt="SCR-20250326-mjmr"
src="https://github.com/user-attachments/assets/c7ffbbcc-9193-46ea-8f37-1df3e4245dac"
/> |
Along the way i changed the interface to the new `<ReplayLoadingState>`.
Now it takes the result of `useLoadReplayReader` as a prop. This will
make it possible to separate loading and rendering, so we can deal with
logging that sometimes happens, or in the case of Traces, the loading
happens very far away and props get drilled down.
0 commit comments