A
A
artmirarmi2019-02-05 08:11:58
Vue.js
artmirarmi, 2019-02-05 08:11:58

How to get rid of elements flickering when transitioning between vuejs components?

Good day.
Faced this kind of problem like flickering elements (images and videos) on the page when navigating between pages in the Vue.JS library.
That is, if two pages have common components, then when switching between pages, the elements of these components flicker, as the DOM changes.
How can you get rid of this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2019-02-05
@AndrewRusinas

If they have common components, then they must be in the same view. Those components that change should be attached to the appropriate routes, and the view should have its own router-view. And navigation should be done using router-link, then there will be no flicker. :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question