68 questions
0
votes
1
answer
82
views
Enable to retrieve data initialize by a dispatched action when the component is mounted
I'm trying to use the new Redux implementation for Angular (@reduxjs/angular-redux).
I followed the getting start and the TypeScript guide of the documentation.
I am able to dispatch actions and ...
0
votes
1
answer
115
views
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 ...
-1
votes
1
answer
494
views
can't assign object value to object JavaScript
I am trying to assing an object to another object with the same type.
So, I have this object 'Language'
export class Language {
languageDescription: string;
languageCode: string;
isDefault: ...
1
vote
0
answers
120
views
@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&...
1
vote
1
answer
72
views
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 ...
0
votes
1
answer
374
views
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<...
0
votes
0
answers
89
views
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 ...
3
votes
1
answer
1k
views
'formDirective' is defined as an accessor in class 'ControlContainer', but is overridden here in 'ConnectArrayDirective' as an instance property
After updating angular 9 to the latest version ("@angular/core": "~11.0.0-next.0",). I got the below error, however, I have updated the latest version of @angular-redux/form, @...
0
votes
1
answer
61
views
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?
1
vote
0
answers
364
views
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": ...
0
votes
1
answer
91
views
How to call a function received from async stream using Angular async pipe? Error: Cannot have a pipe in an action expression
I would like to call a function received from a stream of data using Angular 9 async pipe.
The following code (onApprove)="(modalData$ | async).onApprove()" throws this error: Cannot have a pipe in ...
0
votes
1
answer
187
views
Where to iterate through JSON object
I'm building something with Angular and using redux.
My json object has objects that have certain values. Lets pretend:
name: "john",
sex: "m"
children: [
{
name: "joe",
sex: "m"
children: [
...
0
votes
1
answer
361
views
Observable syntax for filtering by URL parameters?
I am trying to filter a store subscription based on route params, but something about my syntax is not correct. I am trying to pipe the params down so the filter rxjs operator can filter the store the ...
1
vote
0
answers
212
views
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;
...
-1
votes
1
answer
723
views
@angular-redux/store : How to write unit test for the redux store?
I want to mock the redux store and write tests against the redux-store directly to the store. I don't want any angular logic to come in between. Can somebody help?