use-rx-vue
Description
353
| Install | |
|---|---|
npm install use-rx-vue |
|
| Latest Version: | 0.0.50 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Mar 31, 2021 |
| Links: | GitHub · npm |
Maintainer: redsuperbat
UseRxVue
Description
These are useful hooks that you can include into your vue application. These require that vue and rxjs is installed.
| Hook | Description |
|---|---|
| useObservable | Subscribes a ref to given observable and unsubscribes on component unmount. Can accept an optional callback to trigger on each emitted value aswell as an inital state for the ref. |
| useObsFromEvent | Exposes a callback and an observable that should be used to subscribe to dom events. Can accept an optional callback to trigger on each emitted value. |
| useObsFromRef | Converts a ref into an observable |
Installation
npm i --save use-rx-vue
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.0.50 | ^3.0.5 | MIT | |
| 0.0.49 | ^3.0.5 | MIT | |
| 0.0.48 | ^3.0.5 | MIT | |
| 0.0.47 | ^3.0.5 | MIT | |
| 0.0.46 | ^3.0.5 | MIT | |
| 0.0.45 | ^3.0.5 | MIT | |
| 0.0.44 | ^3.0.5 | MIT | |
| 0.0.43 | ^3.0.5 | MIT | |
| 0.0.42 | ^3.0.5 | MIT | |
| 0.0.41 | ^3.0.5 | MIT | |
| 0.0.4 | ^3.0.5 | MIT | |
| 0.0.3 | ^3.0.5 | MIT | |
| 0.0.2 | ^3.0.5 | MIT | |
| 0.0.1 | ^3.0.5 | MIT |