Skip to content

Commit

Permalink
Incorrect builder method referenced
Browse files Browse the repository at this point in the history
The builder method referred to as `builder.addDefault` is incorrect. Changed to `builder.addDefaultCase`
  • Loading branch information
kantbtrue committed Feb 6, 2024
1 parent def3cc2 commit 5137a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/createSlice.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ Similar to `createReducer`, the `extraReducers` field uses a "builder callback"

[examples](docblock://createSlice.ts?token=CreateSliceOptions.extraReducers)

See [the "Builder Callback Notation" section of the `createReducer` reference](./createReducer.mdx#usage-with-the-builder-callback-notation) for details on how to use `builder.addCase`, `builder.addMatcher`, and `builder.addDefault`
See [the "Builder Callback Notation" section of the `createReducer` reference](./createReducer.mdx#usage-with-the-builder-callback-notation) for details on how to use `builder.addCase`, `builder.addMatcher`, and `builder.addDefaultCase`

### `reducerPath`

Expand Down

0 comments on commit 5137a61

Please sign in to comment.