Skip to content

Filter Streams

Triggers when the filter route prepares to enter.

import { filterWillEnter$ } from '@shopgate/engage/filter';
subscribe(filterWillEnter$, ({ action, dispatch, getState, prevState, events }) => {
// The code you want to perform when the stream triggers.
})

Attention: The path to the old modules is deprecated and will be removed in ENGAGE v7: import { filterWillEnter$ } from '@shopgate/pwa-common-commerce/filter'


Triggers when the filter route enters.

import { filterDidEnter$ } from '@shopgate/engage/filter';
subscribe(filterDidEnter$, ({ action, dispatch, getState, prevState, events }) => {
// The code you want to perform when the stream triggers.
})

Attention: The path to the old modules is deprecated and will be removed in ENGAGE v7: import { filterDidEnter$ } from '@shopgate/pwa-common-commerce/filter'


Triggers when the filter route prepares to leave.

import { filterWillLeave$ } from '@shopgate/engage/filter';
subscribe(filterWillLeave$, ({ action, dispatch, getState, prevState, events }) => {
// The code you want to perform when the stream triggers.
})

Attention: The path to the old modules is deprecated and will be removed in ENGAGE v7: import { filterWillLeave$ } from '@shopgate/pwa-common-commerce/filter'


Triggers when the filter route leaves.

import { filterDidLeave$ } from '@shopgate/engage/filter';
subscribe(filterDidLeave$, ({ action, dispatch, getState, prevState, events }) => {
// The code you want to perform when the stream triggers.
})

Attention: The path to the old modules is deprecated and will be removed in ENGAGE v7: import { filterDidLeave$ } from '@shopgate/pwa-common-commerce/filter'


Triggers when either a category route or a search route will enter. You can filter these routes.

import { filterableRoutesWillEnter$ } from '@shopgate/engage/filter';
subscribe(filterableRoutesWillEnter$, ({ action, dispatch, getState, prevState, events }) => {
// The code you want to perform when the stream triggers.
})

Attention: The path to the old modules is deprecated and will be removed in ENGAGE v7: import { filterableRoutesWillEnter$ } from '@shopgate/pwa-common-commerce/filter'


Triggers when either a category route or a search route re-enters on a POP history action.

import { filterableRoutesWillReenter$ } from '@shopgate/engage/filter';
subscribe(filterableRoutesWillReenter$, ({ action, dispatch, getState, prevState, events }) => {
// The code you want to perform when the stream triggers.
})

Attention: The path to the old modules is deprecated and will be removed in ENGAGE v7: import { filterableRoutesWillReenter$ } from '@shopgate/pwa-common-commerce/filter'


Triggers when either a category route or a search route leaves.

import { filterableRoutesWillLeave$ } from '@shopgate/engage/filter';
subscribe(filterableRoutesWillLeave$, ({ action, dispatch, getState, prevState, events }) => {
// The code you want to perform when the stream triggers.
})

Attention: The path to the old modules is deprecated and will be removed in ENGAGE v7: import { filterableRoutesWillLeave$ } from '@shopgate/pwa-common-commerce/filter'


Triggers when filter data updates.

import { filtersDidUpdate$ } from '@shopgate/engage/filter';
subscribe(filtersDidUpdate$, ({ action, dispatch, getState, prevState, events }) => {
// The code you want to perform when the stream triggers.
})

Attention: The path to the old modules is deprecated and will be removed in ENGAGE v7: import { filtersDidUpdate$ } from '@shopgate/pwa-common-commerce/filter'