Should these states be part of NgRx Store to begin with?

Image for post
Image for post

TL; DR: It depends… However, we’ll look into the pros and cons of different approaches. If you chose to make the loading/error as part of the state, make sure they are encompassed within a single property.

Image for post
Image for post
Does handling multiple interconnected properties that represent the same AJAX call ✨spark joy✨? If not, then it’s time to let them go and use a single property instead

Not so long ago Michael Hladky started a very interesting discussion on Twitter.

About

Alex Okrushko

Software Engineer at Google working on Firebase Console.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store