Effen: willUmount->didUnmount, allow setState after didUnmount

This patch changes the timing of the unmount call until after the component is removed (and marked as such) and allows setState to be called after this point. If this happens, setState will still invoke the closer to do any neccesary cleanup, but doesn't schedule the component for render

R=eseidel@chromium.org, eseidel
BUG=

Review URL: https://codereview.chromium.org/985853002
This commit is contained in:
Rafael Weinstein 2015-03-06 12:23:53 -08:00
parent 196fd752c4
commit 4dcb64a99f
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ abstract class FixedHeightScrollable extends Component {
..events.listen('wheel', _handleWheel);
}
void willUnmount() {
void didUnmount() {
_stopFling();
}

View File

@ -61,7 +61,7 @@ abstract class MaterialComponent extends Component {
});
}
void willUnmount() {
void didUnmount() {
_cancelSplashes(null);
}