Client State
State is typically managed on the client side.
Overview
Client state management refers specifically to the process of managing the state or data of a client-side application, such as a web or mobile application, in a way that allows it to be easily accessed, modified, and shared across different components of the application running on the client's device.
In this boilerplate we recommended for learn about this library.
There is a tree structure to handle state management across all running applications.
store
βββ i18n
β βββ <another reducer>
β βββ index.ts //Combine reducers
βββ layout
β βββ <another reducer>
β βββ dashboardSlice.ts //Dashboard layout reducer
β βββ index.ts //Combine reducers
βββ module
β βββ <another reducer>
β βββ userSlice.ts //User module reducer
β βββ index.ts //Combine reducers
βββ ui
βββ <another reducer>
βββ alertSlice.ts //UI alert reducer
βββ index.ts //Combine reducersi18n
State i18n is used to handle all multilanguage state requirements. This is usually used for language switching in applications.
Layout
State layout is used to handle all state ui requirements related to system layout. Inside the boilerplate there are 3 main layouts, namely dashboard, landing, mobile. Sample code is in src/store/layout
Module
State modules are used to handle all the state module requirements of the application, for example the auth module, account, product etc.
UI
State ui is used to handle all state ui requirements related to the system user interface for example alerts, drawers etc.
Last updated