Prevents unnecessary component re-renders during long-running synchronous operations in Vue 3. Version 2.0.4, stable, light maintenance. Provides two usage patterns: a scoped async function and manual start/stop via a render-freeze flag. Unlike v-memo or manual computed caching, it globally freezes the component tree until the operation completes, useful for bulk data processing or animations.
npm install vue-plugin-render-freezeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation, plugin registration, and usage of renderFreezeScope to prevent re-renders during a heavy loop.
Use vue-plugin-render-freeze v1.x for Vue 2 compatibility, or upgrade to Vue 3.
Always wrap manual calls in try/finally.
Use app.use(VuePluginRenderFreeze) instead of Vue.use(VuePluginRenderFreeze).
Wrap with try/catch if you need to handle errors.
Ensure the plugin is installed via app.use(VuePluginRenderFreeze) and the method is used within a Vue component's methods or lifecycle hooks.
Install the plugin with app.use(VuePluginRenderFreeze) and only use in Options API or Composition API inside setup().
Install plugin. In Composition API, use getCurrentInstance() or inject to access renderFreeze/renderFreezeScope.