Sleep

1 vue-bind-once - Vue.js Nourished #.\n\nA tiny, SSR-safe directive for tiing arbitrary records to a factor.\n\nFlying start.\nTo begin with put up vue-bind-once:.\nanecdote include vue-bind-once.\n\n

or even npm.npm mount vue-bind-once-- conserve.Sign up ordinance.import createApp coming from 'vue'.import App coming from './ App.vue'.import BindOnceDirective, BindOncePlugin from 'vue-bind-once'.const application = createApp( Application).app.use( BindOncePlugin).// or app.directive(' bind-once', BindOnceDirective).In many cases you'll be utilizing this directive with an SSR-rendering framework like nuxt, which may possess a various method for you to enroll this instruction. As an example, in a Nuxt plugin:.import BindOncePlugin from 'vue-bind-once'.export default defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Utilization.You can easily now make use of the regulation on any component where you need a binding to a worth that needs to match in between client/server but will not transform dynamically afterwards.
This will certainly deal with both web server and on client re-hydration.