If I add a callback to afterFlush, is there a guarantee that all pending DOM has been rendered before the callback is called?
2 Likes
Was doing some research on rendering and data loading and came across this question. Did you find an answer?
I’m assuming part of the thought process here is that we can wait for subscriptionXYZhandle.ready()
but that doesn’t do anything to assure that the data received via that subscription has been fully rendered into the DOM. So you add afterFlush and/or a setTimeout in hopes that aftwards the data will have been fully rendered into the DOM.