{"library":"logrocket-ngrx","title":"LogRocket ngrx Middleware","description":"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.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install logrocket-ngrx"],"cli":null},"imports":["import { createLogRocketMetaReducer } from 'logrocket-ngrx';"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import LogRocket from 'logrocket';\nimport { createLogRocketMetaReducer } from 'logrocket-ngrx';\nimport { StoreModule, MetaReducer } from '@ngrx/store';\n\nLogRocket.init('your-app-id');\n\nexport const metaReducers: MetaReducer[] = [\n  createLogRocketMetaReducer(LogRocket)\n];\n\n@NgModule({\n  imports: [\n    StoreModule.forRoot(reducers, { metaReducers })\n  ]\n})\nexport class AppModule {}","lang":"typescript","description":"Demonstrates how to add LogRocket ngrx middleware as a meta reducer in an Angular app with @ngrx/store.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}