From 5137a617f9afde3dfdc944d571bc8c34addebc3c Mon Sep 17 00:00:00 2001 From: Shashikant Yadav Date: Tue, 6 Feb 2024 13:43:54 +0530 Subject: [PATCH] Incorrect builder method referenced The builder method referred to as `builder.addDefault` is incorrect. Changed to `builder.addDefaultCase` --- docs/api/createSlice.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/createSlice.mdx b/docs/api/createSlice.mdx index 8e26aef4d9..e315862719 100644 --- a/docs/api/createSlice.mdx +++ b/docs/api/createSlice.mdx @@ -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`