src/project/FileTreeView.js
function (nextProps, nextState) {
            return nextProps.forceRender ||
                this.props.entry !== nextProps.entry ||
                this.props.sortDirectoriesFirst !== nextProps.sortDirectoriesFirst ||
                this.props.extensions !== nextProps.extensions ||
                (nextState !== undefined && this.state.draggedOver !== nextState.draggedOver);
        }
function (nextProps, nextState) {
            return nextProps.forceRender ||
                this.props.entry !== nextProps.entry ||
                this.props.sortDirectoriesFirst !== nextProps.sortDirectoriesFirst ||
                this.props.extensions !== nextProps.extensions ||
                (nextState !== undefined && this.state.draggedOver !== nextState.draggedOver);
        }
function ( nextProps , nextState ) { return nextProps . forceRender || this . props . entry !== nextProps . entry || this . props . sortDirectoriesFirst !== nextProps . sortDirectoriesFirst || this . props . extensions !== nextProps . extensions || ( nextState !== undefined && this . state . draggedOver !== nextState . draggedOver ) ; }
We need to update this component if the sort order changes or our entry object
changes. Thanks to immutability, if any of the directory contents change, our
entry object will change.
We need to update this component if the sort order changes or our entry object changes . Thanks to immutability if any of the directory contents change our entry object will change .