Sleep

1 vue-bind-once - Vue.js Feed #.\n\nA tiny, SSR-safe directive for binding random information to a component.\n\nQuick Start.\nFirst install vue-bind-once:.\nanecdote add vue-bind-once.\n\n

or even npm.npm set up vue-bind-once-- conserve.Sign up directive.bring in createApp coming from 'vue'.import Application coming from './ App.vue'.bring in BindOnceDirective, BindOncePlugin coming from 'vue-bind-once'.const application = createApp( Application).app.use( BindOncePlugin).// or app.directive(' bind-once', BindOnceDirective).In many cases you'll be actually utilizing this regulation with an SSR-rendering platform like nuxt, which may possess a different way for you to enroll this directive. As an example, in a Nuxt plugin:.import BindOncePlugin coming from 'vue-bind-once'.export default defineNuxtPlugin( nuxtApp =&gt nuxtApp.vueApp.use( BindOncePlugin). ).Usage.You may now utilize the ordinance on any kind of factor where you require a binding to a value that needs to match between client/server but won't change dynamically after that.
This will definitely service each hosting server as well as on client re-hydration.

Articles You Can Be Interested In