Update integrating-plugin-into-software-catalog.md

Since v1.0.0 useEntitiy() only returns an Entity by and no loading/error/refresh values anymore.

Signed-off-by: Oliver Langen <128791938+langeno@users.noreply.github.com>
This commit is contained in:
Oliver Langen
2023-08-22 12:16:16 +02:00
committed by GitHub
parent 278994148b
commit 26436da012
@@ -37,7 +37,7 @@ You can access the currently selected entity using the backstage api
import { useEntity } from '@backstage/plugin-catalog-react';
export const MyPluginEntityContent = () => {
const { entity, loading, error, refresh } = useEntity();
const entity = useEntity();
// Do something with the entity data...
};