rxjs Subject.create deprecated - what should I use instead?

Discussão em 'Angular' iniciado por danday74, Janeiro 1, 2025.

  1. danday74

    danday74 Guest

    I have this code in a service in my Angular app:

    const subby = Subject.create(observer, observable)


    But my IDE correctly marks Subject.create as deprecated. What should I use instead thanks? I've tried new Subject(observer, observable) but no joy.

    RxJS version: 6.4.0
    Angular version: 7.2

    Continue reading...

Compartilhe esta Página