Vue SSR Problem
Nishant Mittal

Nishant Mittal @nishantwrp

About: Passionate programmer, Open Source Enthusiast, experienced in REST APIs, full-stack web applications, test-driven development.

Location:
India
Joined:
Sep 30, 2019

Vue SSR Problem

Publish Date: May 27 '20
3 3

I was making a ssr vue app using gridsome. And I had a loader for the app which got off after I fetched the data from a api. But gridsome is not generating html for the actual content but only for the loading icon. How do I deal with that?

Comments 3 total

  • Nishant Mittal
    Nishant MittalMay 27, 2020

    Update: I have found a workaround i.e. to not use v-if instead use display: none; to hide the main element.

  • Naim Latifi
    Naim LatifiMay 28, 2020

    yeah v-show can do the trick and it will set a display:none to the element

Add comment