Sleep

1 vue-bind-once - Vue.js Feed #.\n\nA little, SSR-safe regulation for binding random data to an element.\n\nQuick Start.\nTo begin with put up vue-bind-once:.\nanecdote incorporate vue-bind-once.\n\n

or npm.npm set up vue-bind-once-- conserve.Sign up instruction.import createApp from 'vue'.import 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).For the most part you'll be actually using this ordinance with an SSR-rendering framework like nuxt, which might have a various method for you to register this instruction. For instance, in a Nuxt plugin:.bring in BindOncePlugin coming from 'vue-bind-once'.export default defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Usage.You may right now use the regulation on any sort of element where you need to have a binding to a worth that needs to match in between client/server however will not modify dynamically later on.
This will work with both web server and also on customer re-hydration.