Suspense - delay transition #396
Answered
by
ryansolid
tomaszferens
asked this question in
Q&A
|
By looking at the demo from examples (https://codesandbox.io/s/solid-suspense-tabs-vkgpj) I noticed that transition to the tab happens after the data has been fetched. Is it possible to transition if the data takes more than e.g. 200ms to load? Edit: Oh, okay, that might be related: react/react#19703 |
Answered by
ryansolid
Apr 9, 2021
Replies: 1 comment
|
Exactly. I tend to agree with Andrew and was already thinking this before they made this change. It simplifies the details a lot. The real idea here is we want to avoid the skeleton state if possible. I realize this pushes timeout considerations back to you which is definitely more complicated, but also infinitely flexible once you go that way. |
0 replies
Answer selected by
tomaszferens
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Exactly. I tend to agree with Andrew and was already thinking this before they made this change. It simplifies the details a lot. The real idea here is we want to avoid the skeleton state if possible. I realize this pushes timeout considerations back to you which is definitely more complicated, but also infinitely flexible once you go that way.