Sleep

1 vue-bind-once - Vue.js Feed #.\n\nA small, SSR-safe regulation for binding arbitrary information to an aspect.\n\nQuick Start.\nInitially put in vue-bind-once:.\nyarn include 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 application = createApp( Application).app.use( BindOncePlugin).// or app.directive(' bind-once', BindOnceDirective).For the most part you'll be actually utilizing this ordinance with an SSR-rendering structure like nuxt, which might possess a various technique for you to enroll this directive. For instance, in a Nuxt plugin:.import BindOncePlugin from 'vue-bind-once'.export nonpayment defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Use.You can easily currently make use of the directive on any type of component where you need to have a binding to a worth that needs to match in between client/server but won't transform dynamically afterwards.
This are going to work with each server and on customer re-hydration.