0

How to change rtk query response error format from

error: {
  data: {
    message: "error!",
  }
  status: 400,
}
      

to

error: {
  message: 'error!',
  status: 400,
}

1 Answer 1

0

You would need to either just send "error" instead of { message: "error" } from your server or you would need to reimplement fetchBaseQuery.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.