Address review feedback from PR #33140
- Keep explicit error when API context provider exists but v1 is not available, only return empty holder when there is no provider at all - Update tests in core-app-api to expect the new error message when rendering outside a provider - Add @backstage/core-plugin-api to changeset since it re-exports useApiHolder Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Made-with: Cursor Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
---
|
||||
'@backstage/frontend-plugin-api': patch
|
||||
'@backstage/core-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