Note : Redux store debugging

November 30 20182 mins read ngrx redux devtool

Here is a little note about the debug of a Redux state managed web app, and for the example I will use angular with NGRX, but don't worry this tool works with pretty any of the most known spa frameworks.

What tools ?

npm install @ngrx/store-devtools --save

⚐ If you don't to add extra packages, you can follow the documentation of the browser extention, he explain how to configure it for any framework.

@NgModule({
    declarations: [
        // ...
    ],
    imports: [
        // ...
        StoreDevtoolsModule.instrument({
            maxAge: 10
        })
    ],
    providers: [
        // ...
    bootstrap: [AppComponent]
})

Dashboards

First you can see the left menu "Inspector", you can choose from 3 options:

redux-devtool-board.png

redux-devtool-tabs.gif

redux-devtool-chart.png

Conclusion

bonus

Enjoy debugging.