python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How we can replace Effect code with createEffect in angular for logging..?
Can anyone please help me out with how I can convert below Effect code with createEffect? As we know that effect is already deprecated.?
@Effect()
LogIn: Observable<any> = this.actions.pipe(
...
Manoj Kumar
Votes: 0
Answers: 1
Angular custom error handler and ngrx causing infinite loop
In an Angular app, I implemented a custom error handler which shows an alert (Angular Material snackbar) and dispatches a ngrx action to hide a loading spinner.
Here is an error handler:
export class ...
Mykyta Y.
Votes: 0
Answers: 1
Angular 13 - Cannot use namespace as a type.ts(2709)
Am working on angular 13 version.Trying to import and use action file inside a .spec file shows an error like below
Cannot use namespace 'MyActions' as a type.ts(2709)
This is my spec file
import * ...
arj
Votes: 0
Answers: 1
how to solve this endless loop when selecting a store slice in init hook?
When instantiating a component I need to dispatch an action with a series of props that will be handled by an effect that will in turn obtain data. After this operation I need to update the state and ...
Mario
Votes: 0
Answers: 1