#Hydration loading

1 messages · Page 1 of 1 (latest)

cosmic pollen
#

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 🙂

oak totem
#

Did you try useLazyAsyncData with server:false and display loading depending on status? It should be on the doc