Angular · RxJS · Junior · Concept
What does shareReplay do and when is it risky?
Short Interview Answer
Multicasts and replays last N values to late subscribers; can retain memory and keep sources alive.
Detailed Explanation
Use for caching HTTP among subscribers. Configure refCount carefully. Don't shareReplay(1) forever on huge payloads without strategy.