TIL that Tanstack Query allows you to hold on to existing data (even across query key changes!) via placeholderData.
This helped make a loading state much better. We want to let users change filters (which results in a new query key) but it was a poor experience when the data disappeared from the screen on filter changes