Reputation: 857
I got the following error when using Redux-Toolkit, what does it mean?
name:"ConditionError"
message:"Aborted due to condition callback returning false."
Upvotes: 14
Views: 6252
Reputation: 44086
It means that an asyncThunk was not executed due to condition
. If you are using RTK Query, that just means that another request was skipped because there was either already a request in flight or already a value in cache, so no request needs to be made. This is an internal rejection that RTK-Query uses to track component subscriptions and not an error.
Upvotes: 32