File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
libs/react-utils/src/lib/hooks Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { useStream } from './use-stream';
5
5
6
6
export function useStreamValue < T > (
7
7
factory : FactoryOrValue < Falsy | Observable < T > > ,
8
- deps : DependencyList | undefined ,
8
+ deps : DependencyList ,
9
9
) : T | undefined {
10
10
const result = useStream ( factory , deps ) ;
11
11
const value = result . status === 'success' ? result . value : undefined ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export type StreamResult<T> = PendingResult | SuccessResult<T> | ErrorResult;
14
14
15
15
export function useStream < T > (
16
16
factory : FactoryOrValue < Falsy | Observable < T > > ,
17
- deps : DependencyList | undefined ,
17
+ deps : DependencyList ,
18
18
) : StreamResult < T > {
19
19
const behaviorSubject$ = useMemo ( ( ) => {
20
20
const behaviorSubject$ = new BehaviorSubject < StreamResult < T > > ( PENDING_RESULT ) ;
You can’t perform that action at this time.
0 commit comments