A
A
Artyom Novolodsky2019-01-10 10:58:57
Vue.js
Artyom Novolodsky, 2019-01-10 10:58:57

How to force stop rendering of all vuejs components?

How to turn off vue js on a page? So that nothing is redrawn when the reactive data changes. Disable virtual DOM redrawing, etc.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dima Pautov, 2019-01-10
@bootd

Remove it from the page)))). What kind of nonsense?)))
It is all built on reactivity, its very essence is in this. And you want to just turn off this essence. Why do you need this?
Maybe just describe the problem that torments you and there will be a solution

I
Ilya Myasin, 2019-01-13
@dubr

Well, it is necessary that the interface "freeze" before reloading the page.

Try something like this:
const appNode = document.querySelector('#app');
appNode.innerHTML = appNode.innerHTML;

In theory, event handlers should disappear, and components will lose their connection with the DOM and any pending actions will stop working. But it's not accurate =)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question