We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
type
This will allow for better RTK support when defining apiActions in the extraReducers field.
apiActions
extraReducers
The toString() override is getting removed in 2.0 in favor of referencing the type attribute.
toString()
Instead of having to write
extraReducers: (builder) => { builder.addCase(apiActions.fetchTodo.toString(), todoHandler) }
we can add a type attribute and simply pass in the action creator function itself
extraReducers: (builder) => { builder.addCase(apiActions.fetchTodo, todoHandler) }
Personally, I forgot to do this several times and it led to some pretty subtle bugs
The text was updated successfully, but these errors were encountered:
chawes13
Successfully merging a pull request may close this issue.
This will allow for better RTK support when defining
apiActions
in theextraReducers
field.The
toString()
override is getting removed in 2.0 in favor of referencing the type attribute.Instead of having to write
we can add a type attribute and simply pass in the action creator function itself
Personally, I forgot to do this several times and it led to some pretty subtle bugs
The text was updated successfully, but these errors were encountered: