The `onError` option was not correctly typed in the react-query configuration. This commit updates the type definition to resolve the TypeScript error.