Adam Shaw 7 лет назад
Родитель
Сommit
5a0922225b
1 измененных файлов с 0 добавлено и 11 удалено
  1. 0 11
      src/component/Component.ts

+ 0 - 11
src/component/Component.ts

@@ -53,11 +53,6 @@ export default class Component<PropsType> {
 
   receiveProps(props: PropsType) {
     if (!this.props || !isPropsEqual(this.props, props, this.equalityFuncs)) {
-
-      if (this.props) {
-        this.unrender()
-      }
-
       this.props = props
       this.render(props)
     }
@@ -66,14 +61,8 @@ export default class Component<PropsType> {
   protected render(props: PropsType) {
   }
 
-  protected unrender() {
-  }
-
   // after destroy is called, this component won't ever be used again
   destroy() {
-    if (this.props) {
-      this.unrender()
-    }
   }
 
 }