The "staleTime" and "gcTime" durations have been altered in this example
to show how query stale-ness and query caching work on a granular level
Stale Time:{' '}
setStaleTime(parseFloat(e.target.value))}
style={{ width: '100px' }}
/>
Garbage collection Time:{' '}
setGcTime(parseFloat(e.target.value))}
style={{ width: '100px' }}
/>
Error Rate:{' '}
setErrorRate(parseFloat(e.target.value))}
style={{ width: '100px' }}
/>
Fetch Time Min:{' '}
setLocalFetchTimeMin(parseFloat(e.target.value))}
style={{ width: '60px' }}
/>{' '}
Fetch Time Max:{' '}
setLocalFetchTimeMax(parseFloat(e.target.value))}
style={{ width: '60px' }}
/>
)
}
function App() {
const queryClient = useQueryClient()
const [editingIndex, setEditingIndex] = React.useState