improved: render update

This commit is contained in:
duanhongbo committed 2020-12-04 13:55:59 +08:00
1 parent e36b9694cb
commit cdac600624
1 file changed
-3
-3
View File
@@ -243,9 +243,6 @@ export default class Explorer extends Component<ExplorerProps> {
shouldComponentUpdate(nextProps: ExplorerProps) {
const shouldUpdate = this.curWorkdir != nextProps.workdir;
this.curWorkdir = nextProps.workdir;
if(shouldUpdate){
this.updateRoot();
}
return shouldUpdate;
}