Suspense - delay transition #396
-
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: facebook/react#19703 |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.