Skip to content

Product Streams

Triggers when the product route prepares to enter.

import { productWillEnter$ } from '@shopgate/engage/product';
subscribe(productWillEnter$, ({ 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 { productWillEnter$ } from '@shopgate/pwa-common-commerce/product'


Triggers when a variant is chosen and the route prepares to update.

import { variantWillUpdate$ } from '@shopgate/engage/product';
subscribe(variantWillUpdate$, ({ 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 { variantWillUpdate$ } from '@shopgate/pwa-common-commerce/product'


Triggers when the product image gallery route prepares to enter.

import { galleryWillEnter$ } from '@shopgate/engage/product';
subscribe(galleryWillEnter$, ({ 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 { galleryWillEnter$ } from '@shopgate/pwa-common-commerce/product'


Triggers when the product image gallery route prepares to leave.

import { galleryWillLeave$ } from '@shopgate/engage/product';
subscribe(galleryWillLeave$, ({ 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 { galleryWillLeave$ } from '@shopgate/pwa-common-commerce/product'


Triggers when the product data is received.

import { productReceived$ } from '@shopgate/engage/product';
subscribe(productReceived$, ({ 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 { productReceived$ } from '@shopgate/pwa-common-commerce/product'


Triggers when the product data is retrieved from the store.

import { cachedProductReceived$ } from '@shopgate/engage/product';
subscribe(cachedProductReceived$, ({ 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 { cachedProductReceived$ } from '@shopgate/pwa-common-commerce/product'


Triggers when the data for the currently visible product is completely fetched.

import { receivedVisibleProduct$ } from '@shopgate/engage/product';
subscribe(receivedVisibleProduct$, ({ 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 { receivedVisibleProduct$ } from '@shopgate/pwa-common-commerce/product'


Triggers when a product variant changes.

import { variantDidChange$ } from '@shopgate/engage/product';
subscribe(variantDidChange$, ({ 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 { variantDidChange$ } from '@shopgate/pwa-common-commerce/product'


Triggers when the product relations are received.

import { productRelationsReceived$ } from '@shopgate/engage/product';
subscribe(productRelationsReceived$, ({ 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 { productRelationsReceived$ } from '@shopgate/pwa-common-commerce/product'