Using Loading with async setup and Suspense #13916
Unanswered
bajaco
asked this question in
General - Components / Directives / etc
Replies: 1 comment
-
|
Hello, the following is the recommended way to handle async Technically you could put the loading component in the fallback slot |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Is it acceptable to use Loading in an async setup?
Specifically I am using the
<script setup>syntax, with top-level awaits.It works, to be sure, but displays the following console warning:
Which seems to be a result of calling Loading while it is displaying the fallback content. Is there a way to suppress this warning, or a less stupid way to do this? I wish I could just put a loading component in the Suspense fallback content, but that is only displayed for initial load, not each time the component is loaded.
Beta Was this translation helpful? Give feedback.
All reactions