Skip to content

App Streams

Triggers immediately before the application starts. At this moment, the redux store is already initiated, but React has not started rendering.

import { appWillStart$ } from '@shopgate/engage/core';
subscribe(appWillStart$, ({ 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 { appWillStart$ } from '@shopgate/pwa-common/streams/app'


Triggers when the main <App /> component is mounted to the DOM.

import { appDidStart$ } from '@shopgate/engage/core';
subscribe(appDidStart$, ({ 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 { appDidStart$ } from '@shopgate/pwa-common/streams/app'