jstnjs / nx-angular-learnings

Following best practices. Trying out news things from updates.
0 stars 0 forks source link

When is it okay to use the NGRX? #7

Open jstnjs opened 1 year ago

jstnjs commented 1 year ago

SHARI principle

Shared Shared state is accessed by many components and services. (Auth for example)

Hydrated State that is persisted and hydrated from storage (local, session) (User preferences for example)

Available State that needs to be available when re-entering routes

Retrieved State that needs to be retrieved with a side effect

Impacted State that is impacted by actions from other sources

jstnjs commented 1 year ago

What doesn't belong in the store?