Avoid async commands causing rerenders after unmount. (#2395)
Avoid async commands causing rerenders after unmount. (#2395)

* When the component unmounts, make sure async commands don't trigger react updates.

* Eslint fix

ianstormtaylor/slate,isubastiCadmus/slate,ianstormtaylor/slate