Carlos Carrera
Sep 3, 2018 · 1 min read

Good approach, just one question. What is the reason of pushing just the event with last listing created and not pushing the entire new state of the listings array?
In the create action in your example, the state of the listings array is stored in the service and the view. The listings.append(newListing) is done in both layers. This may cause problems of synchronisation if you don’t take care updating both states everytime is this state is modified.

    Carlos Carrera

    Written by