Sleep

1 vue-bind-once - Vue.js Supplied #.\n\nA small, SSR-safe ordinance for tiing arbitrary information to an aspect.\n\nQuick Start.\nFirst put up vue-bind-once:.\nanecdote add vue-bind-once.\n\n

or npm.npm put in vue-bind-once-- save.Sign up instruction.bring in createApp coming from 'vue'.import Application coming from './ App.vue'.import BindOnceDirective, BindOncePlugin from 'vue-bind-once'.const app = createApp( App).app.use( BindOncePlugin).// or even app.directive(' bind-once', BindOnceDirective).For the most part you'll be actually using this regulation with an SSR-rendering structure like nuxt, which might have a different way for you to enroll this directive. For example, in a Nuxt plugin:.bring in BindOncePlugin from 'vue-bind-once'.export default defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Usage.You may right now utilize the instruction on any sort of component where you require a binding to a worth that needs to match between client/server yet won't alter dynamically after that.
This will deal with both web server as well as on customer re-hydration.