Skip to content

Redux Middleware

Karan Gupta edited this page Apr 14, 2023 · 1 revision

Although this library is meant for react we do also have a Redux middleware provided which hooks into the Dynamics Telemetry service and helps captures all actions streamed to the redux store.

import dynamicsMiddleware from '../lib/DynamicsMiddleware';
import { applyMiddleware, createStore } from 'redux';

const store = createStore(reducer, applyMiddleware(dynamicsMiddleware));

The action type is available in componentName field and the action payload is serialized to JSON and stored in url field of telemetry object

Clone this wiki locally