LogRocket ngrx middleware (v0.2.1) is a companion package for LogRocket that augments session recordings with Redux actions and state from @ngrx/store. It integrates as an ngrx meta reducer to capture dispatched actions and store state snapshots, enabling developers to replay user sessions alongside application state changes. Requires LogRocket >=2 and @ngrx/store >=4. Minimal setup: add `logrocket-ngrx` to your meta reducers. Actively maintained by LogRocket, with weekly releases. Differentiates from generic Redux devtools by integrating directly with LogRocket's session replay and performance monitoring.
npm install logrocket-ngrxVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to add LogRocket ngrx middleware as a meta reducer in an Angular app with @ngrx/store.
Update to v0.1.1 or later.
Update to v0.1.1 or later.
Ensure import is 'logrocket-ngrx' (no subpath).
Upgrade logrocket and @ngrx/store to meet peer requirements.
Run `npm install logrocket-ngrx` and ensure it's in package.json dependencies.
Use `import { createLogRocketMetaReducer } from 'logrocket-ngrx';` with v0.1.0+.Import and initialize LogRocket with `LogRocket.init('your-app-id')` before using `createLogRocketMetaReducer`.