Change useApiHolder to not throw when outside API context
Instead of throwing a NotImplementedError, useApiHolder now returns an empty ApiHolder when no API context is available in the React tree. Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Made-with: Cursor
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/frontend-plugin-api': patch
|
||||
---
|
||||
|
||||
Changed `useApiHolder` to return an empty `ApiHolder` instead of throwing when used outside of an API context.
|
||||
Reference in New Issue
Block a user