streamich/rx-use

React hook that returns unmount notifier observable

オープン

#14 opened on 2020/05/18

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (0 件のフォーク)github user discovery
good first issuehelp wanted

Repository metrics

Stars
 (21 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

Create React hook which returns and indicator observable which signals when component was unmounted.

const MyComponent = () => {
  const unmounted$ = useUnmounted();

  useEffect(() => {
    something$.pipe(
      takeUntil(unmounted$)
    );
  }, []);
};

コントリビューターガイド