kandi X-RAY | ngrx-tutorial Summary
kandi X-RAY | ngrx-tutorial Summary
ngrx-tutorial
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ngrx-tutorial
ngrx-tutorial Key Features
ngrx-tutorial Examples and Code Snippets
Community Discussions
Trending Discussions on ngrx-tutorial
QUESTION
I am quite new to NGRx, I am trying to use Effects on my little project as date uses external data I decided to put it in the effects, so app now is crashed with infinite loop after running "npm start", it is just stops working. Here is the link to repo Github Repo
count.effects.ts ...ANSWER
Answered 2020-Jul-26 at 09:46That's quite simple, your effect is triggered when you dispatch some actions, including countActionsType.updatedAt
.
Inside your effect, you dispatch an Action called CountUpdatedAtAction
, that has type countActionsType.updatedAt
.
That's your infinite loop :)
Every time you update, the effect will try to update again, and again, and again :P
To make this work, just remove countActionsType.updatedAt
in:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ngrx-tutorial
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page