You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: