new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Redux Toolkit · all subjects

rtk overview

4 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Redux Toolkit is the official recommended approach for Redux

Redux Toolkit (RTK) is the official recommended approach for writing Redux logic. The @reduxjs/toolkit package wraps around the core redux package and contains API methods and common dependencies essential for building a Redux app. If you are writing any Redux logic today, you should be using Redux Toolkit to write that code.

RTK core utilities: configureStore, createSlice, createReducer

Redux Toolkit includes utilities that help simplify many common use cases: store setup with configureStore, creating reducers and writing immutable update logic with createSlice and createReducer.

RTK APIs are optional and designed for specific use cases

Each RTK API is completely optional and designed for specific use cases. You can pick and choose which APIs you actually use in your app.

redux core package is now considered obsolete

The redux core package still works, but Redux maintainers now consider it to be obsolete. All of its APIs are re-exported from @reduxjs/toolkit, and configureStore does everything createStore does but with better default behavior and configurability. Users should switch to @reduxjs/toolkit and update code to use Redux Toolkit APIs.

Give your agent this brain