Answer the question
In order to leave comments, you need to log in
How to work properly with NExtTick and Vue?
Hey!
There is a code:
const el = document.querySelector('.messages-content')
el.addEventListener('scroll', (event) => {
// после того как я построил vuex state
... ).then((result) => {
this.$nextTick(function () {
console.log(el.scrollHeight) // 17 000px (примерно)
})
})
})
const el = document.querySelector('.messages-content');
console.log(el.scrollHeight) // 9000px (примерно)
Answer the question
In order to leave comments, you need to log in
If it's here:
// после того как я построил vuex state
... ).then((result) => {
// после того как я построил vuex state
return somePromice;}).then((result) => {
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question