title: how can i pass value in rxjs subscribe function?
body: <p>I'm working on switching the code to rxjs</p>
  <p>here is my original code.</p>
  <pre><code>userAuth$: BehaviorSubject&lt;ArticleInfoRes&gt;;
  
    async loadArticleList(articleId: number) {
      try {
        const data = await this.articleApi.loadArticleList(articleId);
        this.userAuth$.next(data);
        return data;
      } catch (error) {
        return error;
      }
    }
  
  </code></pre>
  <p>Subsequently, an attempt was made to convert to rxjs, but the value was not delivered properly. A value or error must be passed to the location where the loadArticleList function is used. Please tell me what's wrong</p>
  <p>This is the code I tried to convert.</p>
  <pre><code>userAuth$: BehaviorSubject&lt;ArticleInfoRes&gt;;
  
  loadArticleList(articleId: number) {
    from(this.articleApi.loadArticleList(articleId)).subscribe(
      data =&gt; {
        this.userAuth$.next(data);
        return data;
      },
      error =&gt; {
        return error;
      }
    )
  }
  </code></pre>