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:
@@ -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...
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user