Alternatives to Suspense and top-await components #14255
mitar
started this conversation in
General Discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is slightly related to: #9995
Currently, Vue supports the Suspense-based pattern where the idea is that multiple async or top-await components are made so that they are all loaded together.
But I prefer in fact a different UX approach where each component is responsible for its own way how they show "loading" state. The reason is that the component can control the loading look (like gray shapes which match expected look after loading). I find it better if that is done inside the same component because it is easier to maintain both loading look and final look together.
So I wonder, are there any other patterns which would enable top-await enabled component which would allow them to show loading while await is being run?
Beta Was this translation helpful? Give feedback.
All reactions