N
Nuxtβ€’2mo ago
Omnislash

Hydration loading

Hello πŸ™‚ I understand that when the server is done loading, you can display somethign while the client is downloading the content using either <ClientOnly> or OnMounted() Is it possible to display something while the server is loading ? For exemple, to exaggerate it, if I put a 10 seconds waiting for an endpoint to answer, I will have to wait for 10s to display anything no matter what ? I would say yes since wherever I check, documentation including, you have to await the useFetch (or useAsyncData) but... who knows, I might have missed something big ^^" Thanks πŸ™‚
2 Replies
Lynx
Lynxβ€’2mo ago
Did you try useLazyAsyncData with server:false and display loading depending on status? It should be on the doc
Omnislash
OmnislashOPβ€’2mo ago
Gonna check thanks πŸ™‚
Want results from more Discord servers?
Add your server