JSPM

@invition/rxjs-sharelatest

1.0.5
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 329
  • Score
    100M100P100Q99472F
  • License Apache-2.0

An RxJS operator designed to limit source invocation and guarantee a swift initial response

Package Exports

  • @invition/rxjs-sharelatest
  • @invition/rxjs-sharelatest/dist/index.js
  • @invition/rxjs-sharelatest/dist/index.mjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@invition/rxjs-sharelatest) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

RxJS-shareLatest

An RxJS operator designed to limit source invocation and guarantee a swift initial response.

This operator enables the sharing of a source observable across all subscribers, caching and immediately emitting any values to new subscribers unless the cache has expired. Should the source observable complete, behavior varies based on subscriber needs: single-value subscribers receive only the cached value without re-subscribing the source, while multi-value subscribers get both the cached value and future emissions upon source re-subscribe.

Examples of shareLatest can be found in the unit-test file.