Skip to content

Error Streams

Triggers when a JavaScript error occurs within the application.

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

Attention: The following import path is deprecated. Use the path from the example above instead: import { appError$ } from '@shopgate/pwa-common/streams/error'


Triggers when a pipeline throws an error.

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

Attention: The following import path is deprecated. Use the path from the example above instead: import { pipelineError$ } from '@shopgate/pwa-common/streams/error'