-
Notifications
You must be signed in to change notification settings - Fork 0
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
If you like what you see then please consider supporting us by adding a star