Sleep

1 vue-bind-once - Vue.js Feed #.\n\nA little, SSR-safe regulation for tiing arbitrary records to a factor.\n\nFlying start.\nTo begin with mount vue-bind-once:.\nanecdote include vue-bind-once.\n\n

or npm.npm set up vue-bind-once-- save.Register ordinance.import createApp from 'vue'.import Application coming from './ App.vue'.bring in BindOnceDirective, BindOncePlugin from 'vue-bind-once'.const application = createApp( Application).app.use( BindOncePlugin).// or app.directive(' bind-once', BindOnceDirective).In many cases you'll be actually using this regulation with an SSR-rendering structure like nuxt, which may have a different way for you to register this regulation. As an example, in a Nuxt plugin:.bring in BindOncePlugin coming from 'vue-bind-once'.export default defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Usage.You may currently utilize the instruction on any component where you need a binding to a worth that needs to have to match between client/server however won't modify dynamically afterwards.
This will definitely deal with both hosting server and also on customer re-hydration.

Articles You Can Be Interested In