Redux
global state management
Concepts​
- "a "slice" is a collection of Redux reducer logic and actions for a single feature in your app, typically defined together in a single file"
Reducers and Immutable Updates
"You can only write "mutating" logic in Redux Toolkit's createSlice and createReducer because they use Immer inside! If you write mutating logic in reducers without Immer, it will mutate the state and cause bugs!"
"components can't talk to the Redux store directly, because we're not allowed to import it into component files"