Editorial question100.3K views3,073 votes0 answers2,105 following
AI-generatedshareReplay({ refCount }) after upgrading to RxJS 7: old buffered values still replayed to new subscribers
shareReplay caching behavior across the RxJS 6 to 7 boundary We cache an HTTP response with shareReplay so multiple components share one request. After upgrading from RxJS 6 to 7, we want to move from the legacy shareReplay(1) form to the documented configuration object shareReplay({ bufferSize: 1, refCount: true }) , mainly so the source subscription is tor