or even npm.npm put up vue-bind-once-- conserve.Register instruction.import createApp from 'vue'.import App from './ App.vue'.bring in BindOnceDirective, BindOncePlugin from 'vue-bind-once'.const app = createApp( Application).app.use( BindOncePlugin).// or even app.directive(' bind-once', BindOnceDirective).In most cases you'll be actually using this instruction with an SSR-rendering structure like nuxt, which may have a various way for you to enroll this regulation. For example, in a Nuxt plugin:.import BindOncePlugin coming from 'vue-bind-once'.export default defineNuxtPlugin( nuxtApp => nuxtApp.vueApp.use( BindOncePlugin). ).Use.You can right now utilize the instruction on any sort of component where you require a binding to a value that needs to match between client/server however will not modify dynamically after that.
This will focus on each web server as well as on client re-hydration.