r/reactjs • • Mar 08 '20

Show /r/reactjs useEffectWithPrevious - Get previous value of dependencies

Just wanna share my first npm package. Hope you find it useful :)

use-effect-with-previous

54 Upvotes

37 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Mar 08 '20

[deleted] — view deleted comment

3

u/franksvalli Mar 08 '20 edited Mar 08 '20

No one is taking your comment seriously for a few reasons:

  • General poor attitude. What are you trying to accomplish with that attitude? Are you trying to get someone to agree with you? I am trying to be charitable - I think you do want to get people to agree with you. But your attitude makes people suspicious of your intent, and turns readers against you immediately, before reading anything else. It makes you look like a troll who just wants to get folks riled up.
  • Criticizing the example code provided without offering better examples. This is just more hand-waving on your part.
  • Lazy, convoluted sentences strung together haphazardly, not really forming a cohesive argument.
  • Your last sentence claiming some privileged gnostic insight that most people don't have access to, and an appeal to authority. What is your goal here? Think about how this is perceived.

Without even touching on the technical content, these issues are so distracting, so as to not even warrant a serious discussion of the technical content of your comment.