News for hackers. Stuff that matters.
Re:Simple React Patterns by k__ on Friday November 10, 2017 @07:22AM (#15669403)
it would be nice if React.Component had a cancel method, so you could simply drop all your promises into it and they get canceled when the component unmounts.

    this.cancelOnUnmoun(new Promise(...)).then(...)

There are no comments on this comment yet.