DEV Community

Discussion on: Create a SPA with Laravel and Nuxt

Collapse
 
mhmeeaad profile image
Mohamed AbdAlAzim

I can't get it! the api/me should have been requested from the server and pre-rendered before reaching the client side, am I right?

I can see the request in the network inspection, that should make no difference between acyncData and normal data?

please clarify this for me, thanks :).

Collapse
 
skyrpex profile image
Cristian Pallarés

Hi! There's no prerendering when using laravel-nuxt. The api/me request is sent from client side when activating the JS route.

You should use async data if you need your page to wait to be rendered until the data is fetched.