Sleep

1 vue-bind-once - Vue.js Feed #.\n\nA little, SSR-safe ordinance for tiing arbitrary records to an aspect.\n\nFlying start.\nTo begin with put in vue-bind-once:.\nyarn incorporate vue-bind-once.\n\n

or even npm.npm install vue-bind-once-- spare.Register ordinance.import createApp coming from 'vue'.bring in App from './ App.vue'.import BindOnceDirective, BindOncePlugin from 'vue-bind-once'.const app = createApp( App).app.use( BindOncePlugin).// or even app.directive(' bind-once', BindOnceDirective).In many cases you'll be utilizing this ordinance along with an SSR-rendering framework like nuxt, which might possess a various technique for you to register this regulation. For example, in a Nuxt plugin:.import BindOncePlugin coming from 'vue-bind-once'.export default defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Consumption.You can easily now make use of the instruction on any kind of element where you require a binding to a worth that needs to match between client/server yet won't alter dynamically afterwards.
This will definitely work on each server as well as on customer re-hydration.