useAppNode()
Home > @backstage/frontend-plugin-api
> useAppNode
React hook providing access to the current AppNode.
Signature:
function useAppNode(): AppNode | undefined;
Returns:
AppNode | undefined
Remarks
This hook will return the AppNode for the closest extension. This relies on the extension using the ExtensionBoundary() component in its implementation, which is included by default for all common blueprints.
If the current component is not inside an ExtensionBoundary(), it will return undefined
.