Skip to content
Discussion options

You must be logged in to vote

I wouldn't revert the content to the fallback (though you could by just bumping the key in a setTimeout).

I think there are a few better options:

  • Fade the content: After some amount of time (maybe the same as the tab glimmer), fade the content on the current page, or overlay a gimmer over the list. This allows the content to remain visible, and prevents the content for switching to the fallback right as you're about to click. You can use the optimistic/transition pending state for this. The longer you expect the data to delay loading, the more attractive this option is because it gives the user something to do while things are loading, instead of staring at fallbacks all day.
  • Always show…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rickhanlonii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants