<commit_before>import Webiny from 'Webiny';
import ApiContainer from './Components/ApiContainer';
import StaticContainer from './Components/StaticContainer';

class List extends Webiny.Ui.Component {

}

List.defaultProps = {
    renderer() {
        const props = _.omit(this.props, ['renderer']);
        if (_.has(props, 'api') && props.api) {
            return <ApiContainer {...props}/>;
        }
        return <StaticContainer {...props}/>;
    }
};

export default List;<commit_msg>Prevent ui prop on List component and propagated it to child list component<commit_after>import Webiny from 'Webiny';
import ApiContainer from './Components/ApiContainer';
import StaticContainer from './Components/StaticContainer';

class List extends Webiny.Ui.Component {
    componentWillMount() {
        super.componentWillMount();
        if (this.props.ui) {
            Webiny.Ui.Dispatcher.unregister(this.props.ui, this);
        }
    }
}

List.defaultProps = {
    renderer() {
        const props = _.omit(this.props, ['renderer']);
        if (_.has(props, 'api') && props.api) {
            return <ApiContainer {...props}/>;
        }
        return <StaticContainer {...props}/>;
    }
};

export default List;
{'fraction_non_alphanumeric': 0.140278917145201, 'fraction_numerical': 0.0, 'mean_word_length': 2.8364779874213837, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2951723', 'n_tokens_mistral': 346, 'n_tokens_neox': 350, 'n_words': 87}