useEffect(() => {
    const sub = loop$.observe(action$.emit);

    return () => sub.unsubscribe();
  }, [action$, loop$]);