-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Assorted outstanding docs improvements #3738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
✅ Deploy Preview for redux-starter-kit-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit d7fb5ef:
|
docs/api/createSlice.mdx
Outdated
@@ -162,6 +163,14 @@ See [the "Builder Callback Notation" section of the `createReducer` reference](. | |||
|
|||
### The `extraReducers` "map object" notation | |||
|
|||
:::caution | |||
|
|||
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 was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
worth linking to the codemod page?
This PR:
configureStore
API reference to clarify its purpose and what it doescreateSlice
API reference to clarify whatextraReducers
does, and warn about the removal of the object formmatching-utilities
queryFn
with a random async API and a third-party SDK, and emphasizes _returning{error}
from both base queries and query functions<ReturnType, ArgType>
generics for RKTQ queries and mutationsAtLeastOne<T>
workaround for partial payload fieldsFixes #2926
Fixes #2238
Fixes #3113
Fixes #2130
Fixes #1423