Skip to main content

All Questions

Tagged with
1 vote
1 answer
71 views

Angular 19 with NgRx: NullInjectorError: No provider for _StoreRootModule and CSP violations

I am building a login app using Angular 19 with NgRx for state management. I want to store the authentication state using NgRx. My app is set up with standalone components and uses ApplicationConfig ...
Jaime Simeon Palomar's user avatar
0 votes
1 answer
58 views

Why won't the action value set in the state?

Given the following state export const initialState: State = { filters: { typeahead: [], }, cases: [] as CaseData[], recordsReview: {} as DCMedicalRecordsReview, ...
Mark Hill's user avatar
  • 1,851
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 ...
MShake's user avatar
  • 11
-1 votes
1 answer
60 views

Angular Ngrx-Forms Async Pipe Could not be found error

I want to manage the state of my form using ngrx-forms library; so following docs: https://ngrx-forms.readthedocs.io/en/master/ i have a reducer: import { Action, createReducer } from '@ngrx/store'; ...
user28273827332's user avatar
1 vote
1 answer
44 views

Angular State of ComponentStore<T>.updater is undefined

I have this ComponentStore @Injectable({ providedIn: 'root', }) export class SceneGraphStore extends ComponentStore<SceneGraphState> { private readonly sceneGraphUtils = new SceneGraphUtils()...
Son Hai Vu's user avatar
-1 votes
1 answer
64 views

How to access the previous state and current state inside a selector in ngrx selectors? [closed]

I'm wondering if it's possible to access both the previous and current state in ngrx selectors. I haven't been able to find relevant information about this. Is it because I'm using createSelector? Is ...
aravind ks's user avatar
0 votes
1 answer
42 views

NGRX actions with common parameter structure

In angular, I am trying to have a shared error handling mechanism for NgRX effects. I want to have a common interface that all error Actions will implement. For example: export interface ...
Razvan Fulea's user avatar
0 votes
0 answers
212 views

NGXS @Selector doesn't update value

I have an issue with the NGXS Selector. In my state, I call an API to get a table. Because of unified error handling, I first call the API and then defer the actual handling of the request to a ...
Heribert Greinix's user avatar
0 votes
0 answers
165 views

ngxs store dispatch actions are not called in the specific order

I am using NGXS for store management and dispatching the following actions to update the store using the following syntax. this.store.dispatch([ new ChangeObjectActions.AddChange('modify', ...
Ravi chandra's user avatar
0 votes
0 answers
48 views

Angular v15 Application Broken After Migrating redux-devtools-extension package moved to @redux-devtools/extension

Issue Overview: After redux-devtools-extension package moved to @redux-devtools/extension package, I am encountering TypeScript errors in my project. These errors seem to be related to type ...
Khetesh kumawat's user avatar
0 votes
2 answers
106 views

Array subscription gets triggered when other parts of the state change in NgRx

I have locations and activeLocationsIds array. locations array contains all locations, activeLocationsIds contains IDs from active locations (not objects, only IDs that are 1..1 with locations IDs). ...
Domagoj Hamzic's user avatar
0 votes
1 answer
134 views

How to cancel ngrx effect from executing if the user has logged out

I have an action that is dispatched in order to load data when a user logs in. It's caught by an effect as follows: getData$ = createEffect(() => this.actions$.pipe( ofType(Actions....
alalalahehehehhahahaha's user avatar
0 votes
1 answer
367 views

How do I integrate redux-devtools with Angular?

I'm trying to use redux-devtools to debug an NgRX state issue I have in an enterprise Angular (v13) web application, where a race condition causes an action to fire twice. While trying to use the ...
jarodsmk's user avatar
  • 2,119
0 votes
1 answer
54 views

reducer default implementation via ngrx schematics

I am trying to create a reducer via ngrx schematics command ng generate @ngrx/schematics:reducer ZipCodes --group Which is creating a reducer file with NO default implementation of reducer export ...
Vishal's user avatar
  • 1,416
1 vote
3 answers
64 views

Type 'Observable<void>' is not assignable to type 'Observable<IComment[]>' in ngrx

recently i've been trying to learn ngrx and i am following a guide. The code of the guide i'm following is the same as mine, but i am getting this error: Type 'Observable<void>' is not ...
Kristian Lalov's user avatar

15 30 50 per page
1
2 3 4 5
55
X