The Effective Altruism community is working really hard to combat this. It's definitely a real problem. Jeff Kaufman has written a lot about this, and one argument that stood out to me was making very public commitments to charitable giving. You'll feel more compelled to keep donating if a large part of your public identity hinges upon it.