Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const TestQueryCache = ({
children,
enabled = true,
}: {
children: React.ReactNode
enabled?: boolean
}): JSX.Element => {
const queryCache = makeQueryCache({
defaultConfig: {
queries: {
retry: false,
enabled: enabled,
},
},
})
return (
{children}
)
}