Small performance optimization

This commit is contained in:
uwap 2018-08-12 01:27:14 +02:00
parent c7202a9141
commit 21e246c98a
2 changed files with 8 additions and 2 deletions

View file

@ -62,7 +62,7 @@ export default class UiItemList extends React.PureComponent<UiItemListProps> {
renderControl(control: ControlUI, key: string, mqtt: MqttContextValue) {
const props = {
state: mqtt.state,
state: Object.assign({}, mqtt.state),
onChangeState: mqtt.changeState,
key: `${key}-licontrol`
};