Sleep

1 vue-bind-once - Vue.js Supplied #.\n\nA tiny, SSR-safe ordinance for binding arbitrary records to an element.\n\nQuick Start.\nFirst install vue-bind-once:.\nanecdote include vue-bind-once.\n\n

or npm.npm set up vue-bind-once-- save.Sign up directive.import createApp coming from 'vue'.bring in Application coming from './ App.vue'.import BindOnceDirective, BindOncePlugin from 'vue-bind-once'.const application = createApp( Application).app.use( BindOncePlugin).// or even app.directive(' bind-once', BindOnceDirective).In most cases you'll be utilizing this directive with an SSR-rendering platform like nuxt, which might possess a different method for you to enroll this instruction. For example, in a Nuxt plugin:.bring in BindOncePlugin from 'vue-bind-once'.export default defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Consumption.You may now use the regulation on any factor where you need a binding to a worth that needs to match between client/server but won't modify dynamically after that.
This will service each hosting server and on customer re-hydration.

Articles You Can Be Interested In