Does one state object have mass rendering in Angular2?

I see a lot of articles mentioning the use of a single app store, such as Redux for Angular2. Suppose you have a component of the todoList example and another state that does not affect the list, for example, the username. If you change the username, you get a completely new state object, which will reindex the entire todoList. Isn't that wasteful?

+5
source share
1 answer

In general, no. Using templates such as Redux and Ngrx for Angular 2 seems to be becoming the best practice. I use it myself, and I don't notice any performance difference when using Ngrx, even when I pull state from the local data store.

0
source

Source: https://habr.com/ru/post/1242896/


All Articles