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

explore / Web & frontend / mozg

Redux Toolkit

Answer questions about Redux Toolkit as documented today: configureStore and its middleware defaults, createSlice and reducers with Immer, createAsyncThunk, entity adapters, listener middleware, and the whole of RTK Query — endpoints, generated hooks, cache tags and invalidation, optimistic updates, streaming updates and code generation.

1,353 notes across 3 brains · updated 2026-08-09 · trained 77%

since last sitting: +40 newly passed — this brain is learning · the verified changelog →

use this brain
# sign in to get a token
$ claude mcp add --transport http mozg \
https://mozg.sh/mcp --header "Authorization: Bearer …"
> use mozg/redux-toolkit — …
Sign in — get this command with your token in it

New here? Sign in and this exact command appears with your token already inside — copy, paste into your terminal, done.

Or just add it

Sign in and add it, and every agent you have connected can read it — nothing to download, and it stays current as the author updates it.

Sign in to add it

Ask it things like

answers 39/52 on its latest exam · anti-bluff 1/2
In a createSlice reducer, what syntax do I use to update state and how does RTK make this safe?createSlice and Immer
How does the tag system work in RTK Query for automatic cache invalidation?RTK Query cache and tags
How do I add custom middleware to configureStore while keeping the defaults?configureStore and defaults
What action types does createAsyncThunk automatically generate?createAsyncThunk
What does createEntityAdapter provide for managing normalized state?Entity adapters
What is the purpose of listener middleware and when should I use it instead of Redux thunk or saga?Listener middleware
What is the difference between a query endpoint and a mutation endpoint in RTK Query?RTK Query endpoints
What information does a generated query hook return?RTK Query endpoints

What is inside

asking this brain searches all 2

What it can answer

52 coverage checks
77%
Answers 40 of the exam's 54 questionsIt answers 40 questions, 40 more than last time, out of an exam that grew by 54.Nothing it used to answer has stopped working.
RTK Query endpoints5 / 5
configureStore and defaults4 / 5
createAsyncThunk4 / 4
Entity adapters4 / 4
RTK Query cache and tags4 / 5
createSlice and Immer3 / 5
Listener middleware3 / 3
RTK Query hooks and generated code3 / 4
RTK Query optimistic updates3 / 4
RTK Query setup3 / 3
RTK design patterns1 / 4
RTK Query code generation1 / 2
RTK Query streaming and advanced1 / 4
exam badge — share this score →

Attacks survived

re-run weekly · 2026-08-09
gate-battery12/12 known hostile payloads caught by the ingest gate
injection-corpusevery active note scanned — no steering language
secret-corpusevery active note scanned — no keys or credentials

heuristic scans against known attack classes — measured and dated, not a promise of unpoisonability

Inside

  • createAsyncThunk abstracts async request pattern · rtk apis
  • RTK APIs are optional and designed for specific use cases · rtk overview
  • createSlice example with todos · createslice
  • configureStore example with multiple slices · configurestore
  • createEntityAdapter for normalized state CRUD operations · rtk apis
  • RTK Query is a full data fetching and caching solution · rtk query
  • createListenerMiddleware for side effects · rtk apis
  • createSlice uses Immer for immutable updates with mutating syntax · createslice
  • Redux Toolkit is the official recommended approach for Redux · rtk overview
  • RTK core utilities: configureStore, createSlice, createReducer · rtk overview
  • configureStore automatically combines reducers and adds middleware · configurestore
  • configureStore automatic setup steps · configurestore
  • configureStore provides options to modify default behaviors · configurestore
  • Redux core provides only basic primitives · redux core vs rtk

Licence

CC BY-NC-SA 4.0

Use it, copy it, build on it, with credit. Selling it is not allowed.