Sleep

1 vue-bind-once - Vue.js Supplied #.\n\nA tiny, SSR-safe regulation for binding arbitrary records to a component.\n\nQuick Start.\nFirst mount vue-bind-once:.\nanecdote include vue-bind-once.\n\n

or even npm.npm set up vue-bind-once-- conserve.Register instruction.bring in createApp coming from 'vue'.import Application from './ App.vue'.import BindOnceDirective, BindOncePlugin from 'vue-bind-once'.const app = createApp( Application).app.use( BindOncePlugin).// or even app.directive(' bind-once', BindOnceDirective).Most of the times you'll be actually using this instruction along with an SSR-rendering structure like nuxt, which may possess a different way 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). ).Utilization.You can easily right now make use of the regulation on any kind of element where you need a binding to a value that requires to match in between client/server however will not alter dynamically after that.
This will focus on both server and also on customer re-hydration.

Articles You Can Be Interested In