Sleep

1 vue-bind-once - Vue.js Supplied #.\n\nA tiny, SSR-safe instruction for binding arbitrary information to a factor.\n\nFlying start.\nFirst put in vue-bind-once:.\nyarn include vue-bind-once.\n\n

or even npm.npm put in vue-bind-once-- save.Sign up regulation.import createApp from 'vue'.bring in Application coming from './ App.vue'.import BindOnceDirective, BindOncePlugin coming from 'vue-bind-once'.const application = createApp( Application).app.use( BindOncePlugin).// or even app.directive(' bind-once', BindOnceDirective).In many cases you'll be actually using this instruction with an SSR-rendering platform like nuxt, which may possess a various technique for you to register this ordinance. For example, in a Nuxt plugin:.import BindOncePlugin from 'vue-bind-once'.export default defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Usage.You may right now use the ordinance on any element where you need to have a binding to a worth that needs to match between client/server yet will not transform dynamically after that.
This are going to work with both hosting server as well as on client re-hydration.