M
M
Maria2021-01-31 10:31:08
Angular
Maria, 2021-01-31 10:31:08

What is the advantage of Feature State NgRx?

Why declare in each feature module StoreModule.ForFeature()instead of /appjust creating a folder in a folder, for example /app/store, where to separate the states by domains? for example

-app
--store
---user
---products


What is the advantage of dividing the store by features? All the same, the same user State will obviously be used not only in the user feature, but throughout the application? I actively read the documentation until I could find an explanation, unfortunately

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GF, 2021-02-01
@fomenkogregory

Just an encapsulation of logic.
Although there may be something else, but if the docs say nothing about it, then no.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question