Small performance optimization
This commit is contained in:
parent
c7202a9141
commit
21e246c98a
2 changed files with 8 additions and 2 deletions
|
|
@ -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`
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue