You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
api.mount('ExampleQuery')
.transformResponse(
(response) => {
const json = JSON.parse(response); // Response is a string. It should already be an object
}
)
The text was updated successfully, but these errors were encountered:
You'll see the config for axios and since we're not including transformResponse, there's no default behavior.
Edit: After digging into this issue a bit more, I was on the wrong track above. More accurately, by using transformReponse and giving it your own transform function, we're overriding the default. This issue is about maintaining the default transformResponse even when you're using your own custom transform as well.
The text was updated successfully, but these errors were encountered: