UNPKG

vuse-rx

Version:

First-class rxjs support for Vue 3

4 lines 222 B
import { Observable } from 'rxjs'; import { getCurrentInstance } from 'vue'; export const fromHook = (hook) => new Observable(ctx => { getCurrentInstance() && hook(() => ctx.next()); }); //# sourceMappingURL=from.js.map