GoConqr has a new look! Let us know what you think.

Module 1 of 3 · Text

Redux - The downsides of service driven state

Tomas Katz

The downsides of service driven state

 

Our tendency when building apps using angular is to bring the data from services, rendering the data in components and passing down values to child components down the components tree.

But this pattern becomes problematic when building big scale apps for the following reasons:

  • Intermidiate propery passing – in order to pass state to other child components we need to use @input to pass values down the components tree.
    This causes many intermediate components passing value that they aren’t necessarily concerned about.
  • Inflexible refactoring – for the previous mentioned reason, we also create coupling between parent and child components, which makes it difficult to place a component somewhere else in the hierarchy because we need to refactor all parents to pass the values.
  • State troughout the app - Difficult to get a snapshot of the apps state, and knowing exactly which part of the app holds which state.

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?