score:3

have you tried the following?

return thunkapi.rejectwithvalue(error);

Related Query

More Query from same tag