3 ms·
The stores contain the data, but they also include the logic for updating that data. For example, a store of all the comments would also subscribe to events for
by jingc 12y ago
The stores contain the data, but they also include the logic for updating that data. For example, a store of all the comments would also subscribe to events for new comments and add them into the comment thread at the correct location. We've found it more maintainable to keep the application logic for a set of data and the data itself in one place rather than having a model that external pieces can modify.