NgRx Redux devtools not showing store and state details even though applicaton is working fine

know_a_guy_hu_knows_anothr_guy picture know_a_guy_hu_knows_anothr_guy · Oct 2, 2018 · Viewed 8.2k times · Source

I am using the below sample application to learn angular+ngrx. APM Sample NgRx App

I have installed Redux firefox extension. But whenever I run/reload application, redux tab shows 'No store found' message. The application is working as expected(is able to retain state). I am able to dispatch actions, handle it in the reducer etc.. Please help.. I am stuck in this for quite a long time.

Answer

v-andrew picture v-andrew · Feb 2, 2020

There is an issue with Angular app when Redux doesn't see your Store

Check that you have

StoreDevtoolsModule.instrument({maxAge: 25, logOnly: environment.production})

after

StoreModule.forRoot(reducers)

Otherwise you are in trouble.

BTW, it is better to install DevTools with

ng add @ngrx/store-devtools

It adds schematics to the project.