DEV Community

Discussion on: Decorators do not work as you might expect 🤔

Collapse
 
oleksandr profile image
Oleksandr

"return value is not ignored, as opposed to what's mentioned in the documentation"

need to keep an eye on how decorator result is applied in case implementation is changed. Your first solution is more solid in case of such changes.

Collapse
 
d3lm profile image
Dominic Elm

Agreed! That's one of the reasons why I showed both solutions.