rx-polling | RxJS-based polling library with exponential backoff | Reactive Programming library
kandi X-RAY | rx-polling Summary
kandi X-RAY | rx-polling Summary
RxJS-based polling library with exponential backoff
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rx-polling
rx-polling Key Features
rx-polling Examples and Code Snippets
Community Discussions
Trending Discussions on rx-polling
QUESTION
I have an application where I have just added NgRX where I wish to use effects to switch polling on and off.
Sample outline
I followed this post which seemed like a good approach. I have a simplified example of this here, with the bulk of the code is in app.effects.ts
.
Similar to the example, I have the effects startPolling$
, stopPolling$
and continuePolling$
, except I am using the newer createEffect
factory methods.
Also, I have moved the delay(2000)
above the takeWhile()
, as I found if the service call throws an error, the the catchError(err => of(appActions.getDataFail(err)))
would cause the effect to go into an continuous very fast loop without the delay.
The start and stop button dispatches the polling start and stop...
...ANSWER
Answered 2019-Oct-17 at 07:15Use that instead:
QUESTION
Thee are many posts on this, but I cannot see what is wrong in my simple case (I am a rather noob to NgRx, so could be a simple mistake)
I have been putting together as simple a example as I can to help with another issue I am having, but I can't get my the example working, and I just cannot see what is wrong here.
The example is here.
When you click the Start polling button, the action startPolling
is dispatched, but the effect in app.effects.ts
...
ANSWER
Answered 2019-Oct-17 at 05:21Found my problem...
forgot the EffectsModule.forRoot([AppEffects])
in app.module.ts
QUESTION
ANSWER
Answered 2019-May-17 at 04:52I solved the problem solution below.
Look at devDependencies
I downgrade @angular-devkit/build-angular
version from 0.13.9
to 0.8.9
I think @angular/fire
part of firebase/messaging
not compatible build by TerserPlugin
Because version 0.13.9
using build by TerserPlugin
, but version 0.8.9
using build by UglifyJSPlugin
I'm not sure this is the best way but it make me able to continue to work
Everyone can recommend me.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rx-polling
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