Sleep

1 vue-bind-once - Vue.js Feed #.\n\nA little, SSR-safe ordinance for tiing arbitrary information to an aspect.\n\nQuick Start.\nTo begin with put in vue-bind-once:.\nanecdote add vue-bind-once.\n\n

or npm.npm install vue-bind-once-- conserve.Register ordinance.import createApp coming from 'vue'.bring in App from './ App.vue'.bring in BindOnceDirective, BindOncePlugin 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 using this regulation along with an SSR-rendering framework like nuxt, which might possess a various means for you to register this regulation. For instance, in a Nuxt plugin:.bring in BindOncePlugin coming from 'vue-bind-once'.export nonpayment defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Consumption.You may now make use of the instruction on any kind of aspect where you need a binding to a worth that needs to match in between client/server however won't change dynamically afterwards.
This will work with each web server as well as on client re-hydration.