[REM] component: remove PureComponent

This commit is contained in:
Géry Debongnie
2019-04-16 17:19:29 +02:00
parent e5e6c50fff
commit 8163e2b0e4
2 changed files with 1 additions and 19 deletions
-18
View File
@@ -438,21 +438,3 @@ export class Component<
}
}
}
export class PureComponent<E extends Env, P, S> extends Component<E, P, S> {
shouldUpdate(nextProps: P): boolean {
for (let k in nextProps) {
if (nextProps[k] !== this.props[k]) {
return true;
}
}
return false;
}
async updateState(nextState: Partial<S>) {
for (let k in nextState) {
if (nextState[k] !== this.state[k]) {
return super.updateState(nextState);
}
}
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
export { Component, PureComponent } from "./component";
export { Component } from "./component";
export { EventBus } from "./event_bus";
export { QWeb } from "./qweb";
export { connect, Store } from "./store";