Skip to content

Console.error when API fails #622

Answered by tannerlinsley
ninobc asked this question in General
Discussion options

You must be logged in to vote

When using in React Native, you'll need to override the Logger, otherwise, it will cause redboxing all over the place.

import { setConsole } from 'react-query'

setConsole({
  log: console.log,
  warn: console.log,
  error: console.log,
})

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@kopax
Comment options

@TkDodo
Comment options

@kopax
Comment options

@rshettyawaken
Comment options

@TkDodo
Comment options

Answer selected by ninobc
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants
Converted from issue

This discussion was converted from issue #622 on June 24, 2020 16:17.