Update README.md
Signed-off-by: Marley <55280588+marleypowell@users.noreply.github.com>
This commit is contained in:
@@ -38,9 +38,9 @@ You can also use the signal API directly. This allows more fine-grained control
|
||||
subscriptions.
|
||||
|
||||
```ts
|
||||
import { signalsApiRef } from '@backstage/plugin-signals-react';
|
||||
import { signalApiRef } from '@backstage/plugin-signals-react';
|
||||
|
||||
const signals = useApi(signalsApiRef);
|
||||
const signals = useApi(signalApiRef);
|
||||
const { unsubscribe } = signals.subscribe(
|
||||
'myplugin:channel',
|
||||
(message: JsonObject) => {
|
||||
|
||||
Reference in New Issue
Block a user