Skip to content
Discussion options

You must be logged in to vote

You're absolutely right about Suspense -- with the waterfall, you could have nested spinners

  • Show the shell with a spinner for Dataset
    • Show the shell and Dataset with a spinner for the Tasks/Versions
      • Show the whole page

Running the three requests concurrently lets compress that into a single spinner for loading all the data, which will be loaded faster, so probably a better UX but of course it's up to you!

Re: deriving Signal from Resource -- yes, should be fine, just remember that it's a lossy conversion in the sense that you lose access to things like Resource::refetch() if what you have is a Signal not a Resource. In general I'd only convert them to Signal if you're either actu…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Swandog
Comment options

@gbj
Comment options

gbj Feb 22, 2024
Maintainer

Answer selected by Swandog
@Swandog
Comment options

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