angular-redux is Integration of your redux store into your Angular applications. Use this when dealing with Questions related to redux with Angular applications
Questions tagged [angular-redux]
68 questions
2
votes
1 answer
Get latest state from angular-redux store
I create own store
export interface IAppState {
cartData:ICartItem[];
lastUpdate:Date;
}
and add some reducer to handle ADD and REMOVE actions
But in many places I just need latest data from store. According to documentation it is enough…

demo
- 6,038
- 19
- 75
- 149
2
votes
0 answers
Angular Redux-Form Initialization Error: TypeError: Cannot read property of null
I have an Angular 5.2.8 app with angular-redux/form 6.5.0 in it and I am getting this error when my form initializes.
core.js:1448 ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'firstName' of null
TypeError: Cannot read…

Marshall Alex
- 21
- 1
2
votes
0 answers
Normalizing/denormalizing state with angular-redux
I have started a new project with angular-redux and I really like the setup, all is working well. However, the complexity will grow soon and I'm concerned with the store state will become too deep, arrays within arrays - you guys know the…

Rutger van Dijk
- 330
- 1
- 9
2
votes
1 answer
Angular / Redux Cannot read property 'dispatch' of undefined
I am building up a Shopping app with Angular + Redux.
What I want is to fire the "ADD_PRODUCT" action on click through a dispatcher function, but I only get the following error when click on a product:
ERROR TypeError: Cannot read property…

Alexandr Belov
- 1,804
- 9
- 30
- 43
1
vote
0 answers
@angular-redux/form:'formDirective' is defined as an accessor in class 'ControlContainer', overridden here in 'ConnectArray'
Updated my project from Angular 8 to Angular 10.
package.json contains :
"@angular-redux/form": "6.7.0",
"@angular-redux/store": "7.1.1",
"@angular/cdk": "10.2.5",
"@angular/common": "10.1.6",
"@angular/core": "10.1.6",
"@angular/flex-layout":…

Amrutha R
- 11
- 1
1
vote
1 answer
Angular 10 - Insert data using Redux
I am using redux to perform "CRUD" operations.
In my student.reduce.ts file, I have this code to generate a new register:
case StudentsActionTypes.CreateStudentSucceeded:
let studentNew = [];
let s = state.students;
…

Eladerezador
- 1,277
- 7
- 25
- 48
1
vote
0 answers
How to put an entry for angular-redux/store in an angular library's umdModuleIds
I'm trying to create a library that depends on @angular-redux/store but I can't figure out how to put an entry for it at my angular library's umdModuleIds in ng-package.json:
"umdModuleIds": {
"redux": "Redux",
"@angular-redux/store": "???" //…

john.solano
- 107
- 6
1
vote
0 answers
not getting list from api calling using ngrx redux in angular
I am using ngrx redux to get the data from api in angular. I can't loop the fetched data in select tag. Below is my required code:
pfa.module.ts:
export class Pfa {
id: number;
area: string;
}
pfa.actions.ts:
import { Action } from…

Pathik Vejani
- 4,263
- 8
- 57
- 98
1
vote
1 answer
Why redux @select does not work even though the state is changed when using redux-state-sync?
EDIT - This all works if I configure redux-state-sync to use localstorage. I made a repository https://bitbucket.org/em-aitch/sync-app/src/master/ that contains example of working code. If broadcastchannel type (app.component.ts : 76) is changed…

char m
- 7,840
- 14
- 68
- 117
1
vote
1 answer
Fix angular-redux/store after upgrade to 9.0 and angular 7
I have taken over an existing angular application which I am in the process of updating to version 7 from 5. For state-management, it is using @angular-redux which was updated to version 9.0. However keeping the store as is has caused the app to not…

super IT guy
- 195
- 2
- 12
1
vote
0 answers
How to Deploy Angular App with Local Library with Redux
We are developing an angular library that we publish to a private repo. We run a local web application to test the library in development. We publish the library as well.
When I build the application using ng build, the result dist version fails…

westandy
- 1,360
- 2
- 16
- 41
1
vote
0 answers
How could we bind data from store such as ngrx (Angular)
I am working on a project and binding devextreme data grid from ngrx store in angular application. I am dispatching an action and based on action my redux store is being updated i.e. grid data is being fetched from the api. I am dispatching my…

TAB
- 1,944
- 8
- 28
- 45
1
vote
0 answers
Angular e2e fails with 'Angular can't be found' because of Redux enhancer?
I have an angular application that is boilerplate, nothing meaningful, literally the 'welcome' template.
I'm trying to run ng e2e but it fails, checking the chrome tab console before it disappears show me the same error I get when I have redux dev…

SebastianG
- 8,563
- 8
- 47
- 111
1
vote
0 answers
Angular7 (was ok in Angular 6) ERROR TypeError: "e[n] is undefined" on firefox only in dev only due to "loading" variable in redux?
So, I'm using a 'spinner' variable in my redux store to insert a class with ngClass on my progress bar and hide it/show it.
Now -- I know this is the culprit because if I remove all that logic everything is fine. This is an app that has been in…

SebastianG
- 8,563
- 8
- 47
- 111
1
vote
2 answers
After moving state, clearing the state affects the other state
I am new to ngrx and I have a problem with unsubscribing. I am using both the latest versions of Angular and ngrx.
I have CreateState and ModelState. After creating CreateState within a dialogue, I want to copy CreateState to be part of ModelState…

whynotbealion
- 13
- 3