Skip to content

Commit

Permalink
chore: remove custom logger
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVandivier committed Dec 3, 2024
1 parent 7c0fdd1 commit 894f477
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions services/data/src/react/components/DataProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,13 @@ import { DataEngine } from '../../engine'
import { RestAPILink } from '../../links'
import { DataContext } from '../context/DataContext'

/**
* Used to silence the default react-query logger. Eventually we
* could expose the option to consumers
*/
const noop = () => undefined
const customLogger = {
log: noop,
warn: noop,
error: noop,
}

export interface ProviderInput {
baseUrl?: string
apiVersion?: number
children: React.ReactNode
}

export const queryClientOptions: QueryClientConfig = {
logger: customLogger,
defaultOptions: {
queries: {
// Disable automatic error retries
Expand Down

0 comments on commit 894f477

Please sign in to comment.