DEV Community

Discussion on: Implementing Redux pattern

Collapse
dbroadhurst profile image
David Broadhurst

Why are you using this.value in dispatch and subscribe in the final code?

Collapse
jucian0 profile image
Jucian0 Author • Edited

Thanks for comment, this.value is get method, that method returns the current state. (get and set methods don't need () to be invoked in typescript )

Collapse
dbroadhurst profile image
David Broadhurst

Thanks for the clarification and reminder to avoid classical programming ;-)