-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
Currently, there's a PR to remove cache
#2012. The original intention of cache
was to support use-cases, mostly coming from the Angular 2 community, revolving around wanting to persist successful AJAX requests, but still enable retry
and retryWhen
on failed AJAX requests.
This operator should
- Multicast the source observable
- Keep all values and "replay" them after a successful completion
- Enable "retrying" on error
Stuff to consider, and unanswered questions:
- What are the behaviors when applied to a never-ending observable (
Observable.interval(100)
, for example) - How will this operator behave when applied to another
hot
observable?
Possible Solutions
- Re-add the
cache
operator but rename it to something more descriptive of it's purpose. - Add a simplified operator that takes no arguments called
shareResults
proposed here
For sake of discussion, we'll call this operator persist
.
Brooooooklyn, nschipperbrainsmith, sohai, wulfsberg and ckyambitny
Metadata
Metadata
Assignees
Labels
No labels