Understanding Reducers in Redux: Why Dispatching Actions Within Them is Generally Discouraged
In Redux, a state management library for React applications, reducers are pure functions that take the current application state and an action object as arguments