Skip to content
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

Merged
merged 2 commits into from
Nov 2, 2024
Merged

Update part-5-async-logic.md #4747

merged 2 commits into from
Nov 2, 2024

Conversation

matthiasnagel
Copy link
Contributor

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:

Fixed some typos and highlighting
Copy link

codesandbox-ci bot commented Oct 29, 2024

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.

Copy link

netlify bot commented Oct 29, 2024

Deploy Preview for redux-docs ready!

Name Link
🔨 Latest commit 53f2d0b
🔍 Latest deploy log https://app.netlify.com/sites/redux-docs/deploys/6721db976051a30008db2f38
😎 Deploy Preview https://deploy-preview-4747--redux-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@EskiMojo14
Copy link
Contributor

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'
Copy link
Contributor Author

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.

@timdorr
Copy link
Member

timdorr commented Nov 2, 2024

Thanks!

@timdorr timdorr merged commit 2526cfc into reduxjs:master Nov 2, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants