hello
i’ve noticed something strange in context update
- from /courses (couse list view go to /course/23
- on pageBeforeIn call
$on('pageBeforeIn', (e, page) => {
$store.dispatch('getCourse', { course: props.id }); // 23
});
- go back /courses to course list
- click on other course and go to /course/24
- on pageBeforeIn call
$on('pageBeforeIn', (e, page) => {
$store.dispatch('getCourse', { course: props.id }); // 24
});
all data updates normally (image, title, sections and so on), but not innerHTML block that remain with course 23 data
<div class="block" innerHTML="${course.value.description}"></div>
not update
if remove innerHTML and use
<div class="block">${course.value.description}</div>
description update normally
@nolimits4web could be this a bug or I’m doing something wrong?