Skip to content

Commit d7fb5ef

Browse files
committedSep 23, 2023
Link codemod
1 parent 3805c81 commit d7fb5ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎docs/api/createSlice.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ See [the "Builder Callback Notation" section of the `createReducer` reference](.
165165

166166
:::caution
167167

168-
The "map object" notation is deprecated and will be removed in RTK 2.0. Please migrate to the "builder callback" notation, which offers much better TypeScript support and more flexibility.
168+
The "map object" notation is deprecated and will be removed in RTK 2.0. Please migrate to the "builder callback" notation, which offers much better TypeScript support and more flexibility. (There is [a "builder callback" codemod available to help with this migration](./codemods.mdx).)
169169

170170
If you do not use the `builder callback` and are using TypeScript, you will need to use `actionCreator.type` or `actionCreator.toString()` to force the TS compiler to accept the computed property. Please see [Usage With TypeScript](./../usage/usage-with-typescript.md#type-safety-with-extraReducers) for further details.
171171

0 commit comments

Comments
 (0)
Please sign in to comment.