Sleep

1 vue-bind-once - Vue.js Supplied #.\n\nA small, SSR-safe instruction for tiing arbitrary data to an element.\n\nFlying start.\nTo begin with mount vue-bind-once:.\nyarn incorporate vue-bind-once.\n\n

or npm.npm install vue-bind-once-- conserve.Register regulation.bring in createApp from 'vue'.bring in Application coming from './ App.vue'.bring in BindOnceDirective, BindOncePlugin coming from 'vue-bind-once'.const application = createApp( Application).app.use( BindOncePlugin).// or even app.directive(' bind-once', BindOnceDirective).Most of the times you'll be actually utilizing this ordinance along with an SSR-rendering structure like nuxt, which may have a different technique for you to enroll this ordinance. For instance, in a Nuxt plugin:.import BindOncePlugin from 'vue-bind-once'.export nonpayment defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Use.You may right now utilize the ordinance on any type of element where you need a binding to a worth that needs to match in between client/server yet will not modify dynamically afterwards.
This are going to work with each server and also on client re-hydration.

Articles You Can Be Interested In