@@ -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());
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user