both using useCallback and the dependency array for useEffect seem a bit messy and not needed if the getPatient function doesn't depend on state. Passing client to getPatient is easy enough and avoids this.
remove ready state variable, which is a just an alias for patient not being null and clutters the state
getPatient
function doesn't depend on state. Passing client to getPatient is easy enough and avoids this.ready
state variable, which is a just an alias for patient not being null and clutters the state