Skip to content

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

@EskiMojo14

Description

@EskiMojo14

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions