Skip to content

Reviews Streams

Triggers when the reviews route prepares to enter.

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


Triggers when the reviews route prepares to leave.

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


Triggers when the user submits a review.

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


Triggers when a review submission receives a response.

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


Triggers when a review is submitted successfully.

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


Triggers when a review could not be submitted.

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


Triggers when ever reviews should be fetched from the backend.

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