F

Fox Root • 490 Points
Goal Maker

Q. If login API fails, what should the effect dispatch?

  • (A) Reducer error
  • (B) Failure Action
  • (C) Alert directly
  • (D) Reload application
  • Correct Answer - Option(B)
  • Views: 1
  • Filed under category NgRx Store
  • Hashtags:

Explanation by: Fox Root
Best practice is to dispatch a failure action and let UI react to the state change.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.