improved: render update
This commit is contained in:
1 parent
e36b9694cb
commit
cdac600624
1 file changed
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user