Using Effect to Restart a Computation Based on an Event

I'm wondering how i'd use Effect to 'restart' a computation from a certain point, based on an event being fired, which could be caused by the computation's side-effects.

I'm currently using RxJS's switchMap operator to automatically unsubscribe from an observable when an outer observable fires (i.e. an observable listening to the event), whcih has the effect of restarting the computation at a certain point.

I'm trying to understand how I could translate this requirement to Effect.
Was this page helpful?