-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
Update part-5-async-logic.md #4747
Conversation
Fixed some typos and highlighting
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. |
✅ Deploy Preview for redux-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
i don't think the status change makes sense - i would either consider "succeed" and "fail" or "fulfill" and "reject", but "succeed" and "reject" seems odd. |
Changed failed status in PostsState to failed
@@ -326,7 +326,7 @@ import { createSlice, nanoid } from '@reduxjs/toolkit' | |||
// highlight-start | |||
interface PostsState { | |||
posts: Post[] | |||
status: 'idle' | 'pending' | 'succeeded' | 'rejected' | |||
status: 'idle' | 'pending' | 'succeeded' | 'failed' |
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.
The idea was to follow the AsyncThunk
types pending
, fulfilled
, rejected
. Nevertheless switching back to failed
we have to correct it here in the docs otherwise the reader is confused.
Thanks! |
Fixed some typos and highlighting
Thanks for the PR!
To better assist you, please select the type of PR you want to create.
Click the "Preview" tab above, and click on the link for the PR type: