Skip to content

Where is the definition of PayloadAction? #4033

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

Closed
danielo515 opened this issue Mar 11, 2021 · 2 comments
Closed

Where is the definition of PayloadAction? #4033

danielo515 opened this issue Mar 11, 2021 · 2 comments

Comments

@danielo515
Copy link

What docs page needs to be fixed?

  • usage with typescript:
  • typing create reducer:

https://redux.js.org/recipes/usage-with-typescript#typing-createreducer

What is the problem?

There is a reference to a generic type, PayloadAction, that doesn't exist on this repo and it doesn't explain where to get it from.

What should be changed to fix the problem?

It will be ideal to include such type as part of the package. If that is not possible, provide links to it's definition.

@markerikson
Copy link
Contributor

PayloadAction is part of Redux Toolkit, and that particular section of the page specifically discusses Redux Toolkit.

We're planning to revamp the "Usage with TS" page in the near future. See #4025 .

@markerikson
Copy link
Contributor

Fixed by #4042 .

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

No branches or pull requests

2 participants