Debugging NgRx in NativeScript with Redux DevTools

Intro

Table of Contents:

Connecting Redux DevTools with NgRx for NativeScript

Overriding the Way NgRx Fetches the Redux Extension Implementation

Nativescript-ngrx-devtools Plugin: Features Review

How to Use the Plugin

/**
* NativeScript Polyfills
*/
// Install @nativescript/core polyfills (XHR, setTimeout, requestAnimationFrame)
import '@nativescript/core/globals';
import '@valor/nativescript-websockets'; // add this line!
@NgModule({
imports: [
NativeScriptModule,
StoreModule.forRoot(
{
counter: reducer,
},
{
initialState: {
counter: initialState,
},
}
),
...(__DEV__ ? [ // ensure this code is tree shaken in prod
StoreDevtoolsModule.instrument(),
NativeScriptNgRxDevtoolsModule.forRoot()
] : []),

],
declarations: [AppComponent],
bootstrap: [AppComponent],
schemas: [NO_ERRORS_SCHEMA],
})
export class AppModule {}

Caveats

Useful Links

--

--

--

Useful articles from experienced Valor specialists in various spheres of digital development.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

[Leetcode] First Missing Positive

Monitoring the internet connection in your Vue app

How JavaScript works !

A Beginner’s Guide to Redux Thunk from a Beginner: Async Logic and Data Fetching from an API with…

“15+ TailwindCSS Component Libraries” + 6 more must-read Vue articles from this week

Angular: Display loader on every HTTP request handeling concurrency with RxJs

Making API Requests with NodeJS

Convert ES5 to ES6 node js

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Valor Software

Valor Software

Useful articles from experienced Valor specialists in various spheres of digital development.

More from Medium

JS-15 — JavaScript for Programmers, Chapter11

Creating admin dashboards using the rails_admin gem

Understanding JavaScript Asynchronous behavior behind the scenes.

C#/VB.NET - Create Word from Template by Replacing Placeholders in It