79140419

Date: 2024-10-30 09:22:42
Score: 2.5
Natty:
Report link

because we initialize the ngrx in main.ts, so only for Effect files and not other services inside your project we should not get the 'actions$' from injection in the constructor. we should inject it so : private actions$ = inject(Actions);.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Hamid