Sleep

1 vue-bind-once - Vue.js Supplied #.\n\nA little, SSR-safe instruction for binding arbitrary data to an element.\n\nQuick Start.\nFirst put up vue-bind-once:.\nyarn add vue-bind-once.\n\n

or npm.npm put in vue-bind-once-- spare.Register instruction.bring in createApp from 'vue'.import Application coming from './ App.vue'.bring in BindOnceDirective, BindOncePlugin from 'vue-bind-once'.const application = createApp( App).app.use( BindOncePlugin).// or even app.directive(' bind-once', BindOnceDirective).In many cases you'll be using this directive with an SSR-rendering framework like nuxt, which may possess a various method for you to enroll this directive. For instance, in a Nuxt plugin:.import BindOncePlugin from 'vue-bind-once'.export nonpayment defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Utilization.You can currently utilize the regulation on any kind of factor where you need a binding to a value that requires to match in between client/server however won't change dynamically after that.
This will service both hosting server and also on customer re-hydration.

Articles You Can Be Interested In