UNPKG

@equinor/fusion-observable

Version:
12 lines (11 loc) 595 B
import type { FlowSubject } from '../FlowSubject'; import type { Action, Flow } from '../types'; /** * Apply side effect to Reactive Subject. * * __IMPORTANT__ observable returned from flow must return new action or will create infinite loop */ export declare const useObservableFlow: <S, A extends Action = Action>(subject: FlowSubject<S, A>, epic: Flow<A, S>) => void; /** @deprecated since 8.0.3 renamed to useObservableFlow */ export declare const useObservableEpic: <S, A extends Action = Action>(subject: FlowSubject<S, A>, epic: Flow<A, S>) => void; export default useObservableFlow;