Redux Toolkit 2.0 has been released with major breaking changes and new features. The 'object' form for createSlice.extraReducers and createReducer has been removed in favor of the 'builder callback' form. The configureStore.middleware and enhancers must now be callback functions. The autoBatchEnhancer has been added by default in configureStore for improved performance. Redux TS types now include UnknownAction as the default action object type. RTK Query behavior has been optimized and improved.
Sort: