Open sultan-young opened 1 year ago
let length$ = new BehaviorSubject<number>(SNAKE_LENGTH); let snakeLength$ = length$.pipe( scan((step, snakeLength) => snakeLength + step), share() );
I think BehaviorSubject is multicast, share should not be used
BehaviorSubject
share
I think
BehaviorSubject
is multicast,share
should not be used