Closed EliaECoyote closed 2 years ago
This should act as a subject, with the addition of emitting immediately old values to new subscribers, in FIFO order.
The api could look like:
let makeReplaySubject: (bufferSize: int) => subjectT('a) = ....; // example: let subject = makeReplaySubject(5);
I'm currently working on a PR, @kitten please tell me if you think this could be useful!
I was considering to add this already, since we use this in urql with some custom code!
Feel free to open a PR! Iād be happy to review this and get this feature in šš
This should act as a subject, with the addition of emitting immediately old values to new subscribers, in FIFO order.
The api could look like:
I'm currently working on a PR, @kitten please tell me if you think this could be useful!