The initial value of the BehaviorSubject.
Returns a ref object and a BehaviorSubject.
Whenever ref.current is changed, the BehaviorSubject will emit the new value.
The initial value of the BehaviorSubject.
Returns a mutable ref object and a BehaviorSubject.
Whenever ref.current is changed, the BehaviorSubject will emit the new value.
Optional
initialValue: TValueA optional initial value of the BehaviorSubject.
Returns a mutable ref object and a BehaviorSubject.
Whenever ref.current is changed, the BehaviorSubject will emit the new value.