Redux / RTK
codingWe discovered RTK — Redux Toolkit. Redux had settled into the role of glue between the UI application and the server API, and RTK is essentially its refined form, nothing extra. We described the contract for the endpoints and got hooks to use inside components. Need a Middleware? Bolt one on — simple and convenient. Gone is the need to explain to junior developers what global application state is and how to work with it.
React is becoming my main UI tool, and Redux comes into the project along with it — a global application state manager. We bind component props to individual pieces of application state, mostly using it to connect state with the API.
The library is very lightweight and quite pleasant, as long as you understand the concept of reactive programming. The single-store-and-reducers pattern feels verbose at first, but it does bring order to your data.