ngxtension / ngxtension-platform

Utilities for Angular
https://ngxtension.netlify.app/
MIT License
531 stars 77 forks source link

feat: add rxjs operators `poll` and `whenDocumentVisible` #404

Closed FabienDehopre closed 3 weeks ago

FabienDehopre commented 1 month ago

Add two RxJs operators that works well together but still can be used independently.

poll can be used to poll an API at a fixed interval with an optional initial delay. whenDocumentVisible is the RxJs counterpart of the injectDocumentVisibility and can be used to pause and resume a RxJs stream based on the document visibility state.

Related to #405

eneajaho commented 1 month ago

PR not found

FabienDehopre commented 1 month ago

What do you mean?

nartc commented 1 month ago

@all-contributors please add @FabienDehopre for code

nartc commented 4 weeks ago

@all-contributors please add @FabienDehopre for code

nartc commented 4 weeks ago

@FabienDehopre looks like the test failed. Can you take a look?

nartc commented 4 weeks ago

@all-contributors please add @FabienDehopre for code

(third time the charm?)

allcontributors[bot] commented 4 weeks ago

@nartc

I've put up a pull request to add @FabienDehopre! :tada:

nartc commented 4 weeks ago

@all-contributors please add @FabienDehopre for code

(fourth time 🥲)

allcontributors[bot] commented 4 weeks ago

@nartc

@FabienDehopre already contributed before to code

FabienDehopre commented 3 weeks ago

I've fixed the failing tests.