mardi 18 avril 2017

How stores objects update view in flux pattern

Imagine we have a chat application and user has been opened the conversation page with someone. if one of messages edited by other user or message state changed from sent to deliver, Action update sotore with new messages metadata. for example we now have a list of messagesState or messagesText or simply messages with modified data. so in this scenario we don't know which row has beed edited and we render all the data in view again. Is this behavior one of flux principals? isn't better to update and send event about updated object only? Also is it okay to add a presentation layout between stores and view for implementing some logic. ( I developing Android application and so I don't use reactJS or other library like this)

Aucun commentaire:

Enregistrer un commentaire