the code inside the callback provides valuable documentation as to why the view update is needed
I like that. It's probably one of the main reasons why people found setState with an anonymous callback easier to comprehend!
setState
Leaving it empty is now a code-smell to me
Yeah, that irks me out too.
There have been cases where I felt it was probably okay to leave it empty, but those are few and far between.
GitHub-flavored Markdown & a sane subset of HTML is supported.
Fill in your email address if you want to get notified when someone replies to your comment. Your email address is safely stored with strong 256-bit AES encryption. You can unsubscribe from notification emails any time by following a link on the bottom of a reply notification email.