Georgii Kuzmin
Jul 25, 2021

--

Hey Ildar! Looks like there is type error. You subscribed inside the decorator and didn't return anything, however method's return type is observable.
Maybe the better way using pipe and takeUntil operator? And I'm not sure that you (as developer) want to subscribe inside the decorator.
Good article and you completely right. Sometimes subscriptions make mess in a code.

--

--

Georgii Kuzmin
Georgii Kuzmin

Written by Georgii Kuzmin

Senior software engineer. Snowboarder. Tennis player. Gamer.

Responses (1)