Skip to content

Commit fd9e783

Browse files
Update part-5-async-logic.md
Maybe it should be a addDefaultCase() not addDefault()
1 parent 1307b63 commit fd9e783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/essentials/part-5-async-logic.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ The `builder` object in `extraReducers` provides methods that let us define addi
455455
- `builder.addMatcher(matcher, reducer)`: defines a case reducer that can run in response to any action where the `matcher` function returns `true`
456456
- `builder.addDefaultCase(reducer)`: defines a case reducer that will run if no other case reducers were executed for this action.
457457

458-
You can chain these together, like `builder.addCase().addCase().addMatcher().addDefault()`. If multiple matchers match the action, they will run in the order they were defined.
458+
You can chain these together, like `builder.addCase().addCase().addMatcher().addDefaultCase()`. If multiple matchers match the action, they will run in the order they were defined.
459459

460460
```js
461461
import { increment } from '../features/counter/counterSlice'

0 commit comments

Comments
 (0)