Optimized for safely getting synchronous values from hot or pure observables
without triggering extra initial re-rendering.
⚠ If the observable is cold and with side effects
they will be performed at least twice!
By default this hook will subscribe to the observable at least twice.
The first time is for getting synchronous value to prevent extra initial re-rendering.
In concurrent mode this may happen more than one time.
Optimized for safely getting synchronous values from hot or pure observables without triggering extra initial re-rendering.
⚠ If the observable is cold and with side effects they will be performed at least twice!
By default this hook will subscribe to the observable at least twice. The first time is for getting synchronous value to prevent extra initial re-rendering. In concurrent mode this may happen more than one time.