Reviews Streams
- reviewsWillEnter$
- reviewsWillLeave$
- requestReviewSubmit$
- responseReviewSubmit$
- successReviewSubmit$
- errorReviewSubmit$
- shouldFetchReviews$
reviewsWillEnter$
Section titled “reviewsWillEnter$”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'
reviewsWillLeave$
Section titled “reviewsWillLeave$”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'
requestReviewSubmit$
Section titled “requestReviewSubmit$”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'
responseReviewSubmit$
Section titled “responseReviewSubmit$”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'
successReviewSubmit$
Section titled “successReviewSubmit$”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'
errorReviewSubmit$
Section titled “errorReviewSubmit$”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'
shouldFetchReviews$
Section titled “shouldFetchReviews$”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'

