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
1
vote
1 answer
Updating/ Pushing new data into NgRedux state
I am new to Angular and writing service which I will be using to add new addresses (posting to a REST API).
The saveAddress method call returns a newly created address object on server.
Which I wanted to push into the already existing array of…

user1592129
- 461
- 1
- 5
- 16
1
vote
1 answer
Error with Redux 4.0.0 while using @angular-redux/store
Getting following error on compile time:
ERROR in node_modules/@angular-redux/store/lib/src/components/ng-redux.d.ts(10,31): error TS2420: Class 'NgRedux' incorrectly implements interface 'ObservableStore'.
Types of property…

Akash Seth
- 21
- 4
1
vote
1 answer
How can I be notified when an ngrx action / effect is complete in Angular5?
In my component, I have
this.uploadService.onUpload({
some: data
})
In my uploadService, I have
onUpload($event: SubmissionFileUpload) {
this.userDetails$ = this.homeService.getUserDetails();
this.userDetails$.subscribe(
res => {
…

Shamoon
- 41,293
- 91
- 306
- 570
1
vote
2 answers
In angular (v5) how do I listen to my apps Redux state object changing?
I need to know how to create a listener e.g. I want to subscribe to the AppState changing.
Below is my current very basic service.
I have a dispatch action on the view which increments the counter.
Once the counter changes value I'd like to detect…

AngularM
- 15,982
- 28
- 94
- 169
1
vote
1 answer
Delay epic action depending on payload
According to the documentation it is quite simple to delay an action within an observable:
const pingEpic = action$ =>
action$.ofType('PING')
.delay(1000) // Asynchronously wait 1000ms then continue
.mapTo({ type: 'PONG' });
But I'd like…

Oliver
- 43,366
- 8
- 94
- 151
1
vote
2 answers
How to send payload when dispatching an action in Angular-redux with Angular 5+
How do I send a payload when dispatching an action in angular-redux? I can't find it anywhere explained, neither in the official tutorials, nor in the API-Docs.
The class 'Action' has a property 'type', but no property 'payload'.
API-Docs:…

user1337
- 460
- 6
- 22
1
vote
1 answer
Angular-Redux Epics
Getting the following error message in console when using the angular-redux library. Also, Redux won't catch or listen for actions after the error occurs. I've searched, including the documentation but nothing points out to fix the error.
Am I…

Ben Isaac
- 69
- 1
- 10
1
vote
1 answer
How to display items from redux store in angular5 app?
I have an angular5 component that I am trying to hookup with a reduxstore, it looks like this:
import { Component } from '@angular/core';
import { NgRedux, select, DevToolsExtension } from '@angular-redux/store';
import { TodoActions } from…

bier hier
- 20,970
- 42
- 97
- 166
1
vote
1 answer
Can't access redux store property
I can't access to a redux store property working with angular.
I have two properties in the IApp, the first is an interface and the second a number.
interface AppStoreInterface {
layoutInterface: LayoutInterface,
numero: number
}
I can access…

Luis Contreras
- 777
- 9
- 23
1
vote
1 answer
Angular : Manually creating a stream of route changes vs Using the built in @angular/router's
What is the motivation behind manually creating a stream of route changes instead of using the built in @angular/router's ActivatedRoute as the Angular guide suggests?
export class HeroListComponent implements OnInit {
heroes$:…

Chris Tarasovs
- 703
- 2
- 21
- 54
0
votes
0 answers
@angular-redux show state is undefined while fetching from ngRedux store
I am trying to read the configuration from store, and i have returned the default state in all the reducers still not able to figure out why do i get state as undefined, can anyone please guide on this
below is the ts file line (we call below line…

user1498069
- 124
- 2
- 14
0
votes
1 answer
Prevent redux from cancelling actions
I'm using redux with redux-angular. My usecase is to fetch data in two steps:
Fetch user courses
For each course download the progress
I've tried several ways, always with the same effect. Only the last progress is being downloaded, the rest are…

Marcin Kunert
- 5,596
- 5
- 26
- 52
0
votes
1 answer
angular guard with angular-redux/store
I'm using @angular-redux/store in my project.
I'm trying to create a guard with @select() decorator like this:
@select((s: IAppState) => s.user.userInformations.userState) userState$: Observable;
and my canActivate method is like this…

Emad Az
- 35
- 1
- 6
0
votes
0 answers
ERROR in @angular-redux/form/angular-redux-form.ts(3,32): Error during template compile of 'composeReducers'
I have updated the angular app from 8 to 9, after updating when I run the application, it gives me a error as
ERROR in @angular-redux/form/angular-redux-form.ts(3,32): Error during template compile of 'composeReducers'
Function expressions are not…

San Jaisy
- 15,327
- 34
- 171
- 290
0
votes
1 answer
Different between of(...) and [...] in switchMap in effect
For example we have some effect:
...
switchMap(() => of(action1, action2))
...
and
...
switchMap(() => [action1, action2])
...
Do we have any differents?

artart
- 3
- 2