How to use the react-query.makeQueryCache function in react-query

To help you get started, we’ve selected a few react-query examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github exercism / website / test / javascript / support / TestQueryCache.tsx View on Github external
export const TestQueryCache = ({
  children,
  enabled = true,
}: {
  children: React.ReactNode
  enabled?: boolean
}): JSX.Element => {
  const queryCache = makeQueryCache({
    defaultConfig: {
      queries: {
        retry: false,
        enabled: enabled,
      },
    },
  })

  return (
    
      {children}
    
  )
}