ngrx Questions
2
Solved
I am new to ngrx-6.
The effects will listen to action "LOAD_COURSE_DETAILS" and should make a call to service with the course_id (action.payload). But i am getting an error
Property 'toFixed' is...
Methenamine asked 23/9, 2018 at 12:36
5
Solved
I'm trying to understand ngrx/effects. I have built a simple function that increments number by 1 with each click. But it's going in an infinite loop when clicked, not sure whats going on. I'm sure...
Timoteo asked 2/12, 2016 at 2:23
2
In my Angular app I have a Selector file plan.selectors.ts which has a few really complex Selectors. A lot of calculations are carried out when retrieving the data and some of these calculations ar...
Sevastopol asked 3/10, 2020 at 19:21
5
Solved
I have the following container component
export class EventsComponent {
data$: Observable<Data[]> = this.store.select(data);
loading$: Observable<boolean> = this.store.select(loading)...
2
Solved
When using previous versions of ngrx where I didn't use
createAction() and createReducer(), it would throw an error if I try to add any additional attributes that were not part of the provided Sta...
4
I start using ngrx let to using plain objects.
The problem is when I use a lot of observables in my component, I end up with the code which is seems bad (ng-container inside ng-container inside ng-...
6
I have an angular 12.0.2 app that uses ngrx 12.0.0. When I run the app and access the route that lazy loads the module, I get the following error.
ERROR Error: Uncaught (in promise): NullInjectorEr...
Alopecia asked 8/6, 2021 at 4:5
6
Solved
I need to dispatch multiple actions after calling an API request in my effect.
I'm using this code at the moment to dispatch one action after API request done:
changeStatus$ = createEffect(() =>...
Fermium asked 8/9, 2021 at 8:39
6
Solved
I have looked at the 2 other posts regarding this, the one with the wrapping around the larger state does not apply whilst the other one with registering multiple forFeature -- I have done some tes...
Glassful asked 2/10, 2019 at 9:31
2
Solved
Seemingly out of the blue I am getting errors with RxJS.
My project is Angular, Typescript and I use RxJS as part of NGRX redux.
My code seemed to work absolutely fine with just this as an import...
Krypton asked 4/9, 2017 at 10:36
2
Solved
I have an array of objects in the NgRx store like so:
[ {email: '[email protected]', primary: true, type: 'WORK'},
{email: '[email protected]', primary: true, type: 'WORK'},
{email: '...
Spanish asked 6/8, 2020 at 18:28
2
I'm new to ngrx (and never used redux) and am trying to make sense of it all - especially whether you need deep copies of the state. Here's what I've learned so far and what still confuses me (furt...
Quilmes asked 3/1, 2020 at 11:34
3
I have an Angular application that has been building and running just fine, but had some strange npm dependency issues when I added angular/material, so I deleted both package-lock.json and my node...
Husted asked 1/9, 2022 at 3:21
0
I've been looking for information on how to test NgRX singalStore I use in my project. Unlike @ngrx/store, there is no documentation regarding testing (store testing link).
With presented code:
exp...
Ruthanneruthe asked 2/1 at 16:38
12
Solved
My service class, before calling a web service, needs to get a property called dataForUpdate from my state. Currently, I'm doing it like this:
constructor(public _store: Store < AppState > ,...
6
Solved
I am having an issue with the ngrx store not dispatching an action to the effect supposed to deal with it.
Here is the component that tries to dispatch:
signin() {
this.formStatus.submitted =...
Southeastward asked 22/3, 2017 at 20:53
3
I am trying to import NGRX to build a new Angular application but i have this error in my terminale when i use ng serve:
ERROR in node_modules/@ngrx/store/src/reducer_creator.d.ts:32:99 - error TS1...
3
Hello I have issue with ngrx/effects - pipe undefined. Below I attached sample code which is correct along compilator but browser shows undefined pipe error.
constructor(
private actions$: Actions...
Bechler asked 18/4, 2022 at 19:14
6
Solved
I'm using ngrx store.
In my state I have to items
export interface ISchedulesState {
schedulings: ISchedules;
actualTrips: ISchedule[];
}
Here are my interfaces
export interface ISchedules ...
Unskilled asked 21/8, 2019 at 11:51
3
Solved
Let's say, I have a stream of actions. Each action is assigned some id. Like this:
const actions$ = of({ id: 1 }, { id: 2 }, { id: 1 });
Now, for each action, I want to perform some logic in swi...
Halvah asked 6/7, 2019 at 20:5
3
I have been reading the code of ngrx example app and find two function calls
createFeatureSelector<AuthState>('auth');
and
createSelector(selectAuthState,(state: AuthState) => stat...
Whitesmith asked 29/10, 2017 at 10:21
5
I have a simple feature module, which provides services and imports its own stats fragment as a feature:
@NgModule({
imports: [
CommonModule,
StoreModule.forFeature('alarms', alarmsReducer, { i...
Margaretmargareta asked 7/9, 2018 at 9:3
2
I am trying to enable trace and traceLimit (this feature https://extension.remotedev.io/docs/Features/Trace.html) on ngrx/store-devtools.
I am currently using these packages and version, and runni...
Removable asked 17/6, 2019 at 17:13
3
I read a lot about Signals which will be released with Angular 16 and did already some coding with it. Pretty awesome!
I heard (and believe) it will probably replace almost all RxJs Code expe...
Scuttle asked 16/4, 2023 at 13:23
6
Solved
is there any way to run an specific angular spec test file in Nx work space?
Recently i moved my Angular 4 cli application into Nx work space. Previously i used fdescribe to achieve this function...
Archaeological asked 17/2, 2018 at 7:16
1 Next >
© 2022 - 2024 — McMap. All rights reserved.