Filter Streams
- filterWillEnter$
- filterDidEnter$
- filterWillLeave$
- filterDidLeave$
- filterableRoutesWillEnter$
- filterableRoutesWillReenter$
- filterableRoutesWillLeave$
- filtersDidUpdate$
filterWillEnter$
Section titled “filterWillEnter$”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'
filterDidEnter$
Section titled “filterDidEnter$”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'
filterWillLeave$
Section titled “filterWillLeave$”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'
filterDidLeave$
Section titled “filterDidLeave$”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'
filterableRoutesWillEnter$
Section titled “filterableRoutesWillEnter$”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'
filterableRoutesWillReenter$
Section titled “filterableRoutesWillReenter$”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'
filterableRoutesWillLeave$
Section titled “filterableRoutesWillLeave$”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'
filtersDidUpdate$
Section titled “filtersDidUpdate$”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'

