Q: did not return to the top of the page when switching pages under dva
use window.scrollTo (0,0) in subscriptions; no effect, undefined.
window can be printed
backTop({ history }) {
return history.listen(() => {
console.log(window.scrollTo(0, 0))
window.scrollTo(0, 0);
});
}
Update is not undefined, but still has no effect