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

Deprecate/remove getType (and possibly actionCreator.toString override?) #3370

Closed
EskiMojo14 opened this issue Apr 17, 2023 · 0 comments
Closed
Assignees
Milestone

Comments

@EskiMojo14
Copy link
Collaborator

Currently RTK exports a function called getType, which uses the .toString override from an action creator to return that action's type.

This was likely useful when the toString override (which was mainly for the now-removed object syntax for extraReducers) was the only method of getting the type, but action creators now have a static .type property which does this in a much simpler fashion.

As a result, it could be worth removing getType and possibly the toString override for 2.0.

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