Skip to content

applyFilters

applyFilters is a DOM event that occurs whenever the filters are applied.

Event body

none

Example

In this example we listen to applyFilters event and perform an action whenever it's emitted.

useStorefront(async (storefront) => {
    document.addEventListener('applyFilters', () => {
        console.log('Filters have been applied');
    });
});