Open jstnjs opened 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
What doesn't belong in the store?
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