Skip to main content

<FhirError />

The <FhirError /> displays error messages, and optionaly allows to retry a query or a mutation.

See also <FhirQueryLoader /> for a more complete error management solution.

Example usage

const encountersQuery = useFhirSearch("Encounter");

if (encountersQuery.isError) {
return (
<FhirError
error={encountersQuery.error}
onRetry={() => encountersQuery.refetch()}
/>
);
}

//...

Preview