3 ms·
By using this, how do you prevent the initial render (before js runs) the blink showing the user the raw template? That's a big drawback, isn't it?
by midrus 5y ago
By using this, how do you prevent the initial render (before js runs) the blink showing the user the raw template? That's a big drawback, isn't it?
- JZumun 5y agoAccording to petite-vue's readme, it supports the `v-cloak` directive [0], which is how vue recommends you hide the unprocessed template before it is mounted. For more complicated logic, I think working with the @mounted event might work. [0] https://v3.vuejs.org/api/directives.html#v-cloak https://v3.vuejs.org/api/directives.html#v-cloak
- midrus 5y agoMakes sense. Thanks!
- deleted 5y ago[deleted]