Sleep

1 vue-bind-once - Vue.js Feed #.\n\nA small, SSR-safe instruction for tiing arbitrary records to an aspect.\n\nQuick Start.\nInitially set up vue-bind-once:.\nyarn include vue-bind-once.\n\n

or even npm.npm put in vue-bind-once-- spare.Register instruction.import createApp from 'vue'.bring in Application coming from './ App.vue'.import BindOnceDirective, BindOncePlugin from 'vue-bind-once'.const app = createApp( Application).app.use( BindOncePlugin).// or even app.directive(' bind-once', BindOnceDirective).In many cases you'll be utilizing this instruction along with an SSR-rendering structure like nuxt, which may possess a different means for you to enroll this regulation. As an example, in a Nuxt plugin:.import BindOncePlugin from 'vue-bind-once'.export default defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Usage.You can currently utilize the ordinance on any type of element where you need to have a binding to a value that needs to match in between client/server but will not alter dynamically later on.
This will work with each server as well as on client re-hydration.