Merge pull request #11887 from backstage/freben/refref

update catalog client readme to correctly point to catalog-react
This commit is contained in:
Fredrik Adelöw
2022-06-07 16:53:11 +02:00
committed by GitHub
2 changed files with 8 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/catalog-client': patch
---
Update README to point to catalog-react for frontend usage
+3 -4
View File
@@ -5,10 +5,9 @@ Backstage Catalog.
Backend code may import and use this package directly.
However, frontend code will not want to import this package directly - use the
`@backstage/plugin-catalog` package instead, which re-exports all of the types
and classes from this package. Thereby, you will also gain access to its
`catalogApiRef`.
However, frontend code will not want to instantiate a catalog client directly -
use the `@backstage/plugin-catalog-react` package instead, which exports a
`catalogApiRef` that can be leveraged like other frontend utility APIs.
## Links