Just upgraded @reduxjs/toolkit to 2.0.1 and ran into: "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead"

Wiskey! Tango! Foxtrot!

Rationale here:
https://github.com/reduxjs/redux-toolkit/releases/tag/v2.0.0

"works much better with TypeScript." doesn't carry much weight with me and I rather liked the old syntax. Found it compact and readable.

Sigh!

#reduxjs #reduxjstoolkit

Release v2.0.0 · reduxjs/redux-toolkit

This major release : Removes the deprecated object syntax from createSlice and createReducer Removes other deprecated options Updates the middleware and enhancers options of configureStore to requ...

GitHub