Sleep

1 vue-bind-once - Vue.js Feed #.\n\nA little, SSR-safe directive for binding arbitrary data to a component.\n\nQuick Start.\nTo begin with mount vue-bind-once:.\nyarn add vue-bind-once.\n\n

or npm.npm mount vue-bind-once-- save.Register regulation.import createApp coming from 'vue'.bring in App 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).In most cases you'll be using this instruction with an SSR-rendering platform like nuxt, which might have a various means for you to enroll this ordinance. For example, in a Nuxt plugin:.import BindOncePlugin coming from 'vue-bind-once'.export nonpayment defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Usage.You can right now utilize the instruction on any kind of component where you need to have a binding to a worth that needs to have to match between client/server yet will not change dynamically after that.
This will deal with both server as well as on customer re-hydration.