useBlocStreamState<B extends BlocStream<S>, S> function Null safety

S useBlocStreamState<B extends BlocStream<S>, S>(
  1. {B? bloc}
)

Subscribes to a BlocStream and return its current state.

Implementation

S useBlocStreamState<B extends BlocStream<S>, S>({B? bloc}) {
  return use(_BlocStreamStateHook(bloc));
}