updated changeset

Signed-off-by: Alex Rybchenko <arybchenko@box.com>
This commit is contained in:
Alex Rybchenko
2022-07-22 11:02:06 +02:00
parent a6407c0f82
commit 565071f258
+10 -1
View File
@@ -2,4 +2,13 @@
'@backstage/plugin-shortcuts': minor
---
Fixed shortcuts initialization when using firestore
Internal observable replaced with a mapping from the storage API. This fixes shortcuts initialization when using firestore.
`ShortcutApi.get` method, that returns an immediate snapshot of shortcuts, made public.
Example of how to get and observe `shortcuts`:
```typescript
const shortcutApi = useApi(shortcutsApiRef);
const shortcuts = useObservable(shortcutApi.shortcut$(), shortcutApi.get());
```