How to display default error action.message in reactjs toolkit?
Got a reducer:
...
getQueryFail: state => {
state.loading = false
state.errors = true
}
...
And actions dispatch:
...
catch(error){
dispatch (getQueryFail())
}
....
How to display error message on fail action?