# useObservable

Use an RxJS , return a , and automatically unsubscribe from it when the component is unmounted.

**Package:** `@vueuse/rxjs`
**Category:** '@RxJS'

## Options

| Option       | Type             | Default | Description                                                     |
| ------------ | ---------------- | ------- | --------------------------------------------------------------- |
| initialValue | `I \| undefined` | -       | The value that should be set if the observable has not emitted. |

## Reference

[VueUse Docs](https://vueuse.org/core/useObservable/)
