vue-rx | 👁️ RxJS integration for Vuejs | Reactive Programming library
kandi X-RAY | vue-rx Summary
kandi X-RAY | vue-rx Summary
️ RxJS integration for Vue.js.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Observes an event .
vue-rx Key Features
vue-rx Examples and Code Snippets
Community Discussions
Trending Discussions on vue-rx
QUESTION
I need the help in the following vue-rx / RxJs question.
I have to make a subscription in vue-rx that watches a props value, and when it is true then it calls a http request in every 500 ms, and stops it when it is false, or when the returned value is 'COMPLETED'.
I tried something like this:
...ANSWER
Answered 2020-Oct-13 at 20:25I'm not too familiar with vue (or vue-rx), so this may just be half the answer (the RxJS bit).
I'm assuming this.$watchAsObservable('started')
with pluck('newValue')
is a stream of true
and false
? (reflecting the value of the started
prop)
If so, I would use switchMap to switch between an interval/timer and nothing.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vue-rx
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page