Hi truthandlies.
Assuming you are calling setFilter upon user interaction, e.g. a button click, you can use the setFilter Promise result as an event of filtering is done.
Example:
export function button1_click(event, $w) {
$w('#dataset1').setFilter(wixData.filter().eq('id', 3))
.then(() => {
console.log('filter set is done');
});
}
More info at: wix-dataset - Velo API Reference - Wix.com - see Return value section.
Regards,
Genry.