Canvas: Inconsistent border behavior (#61794)

This commit is contained in:
Adela Almasan
2023-01-19 12:43:22 -06:00
committed by GitHub
parent e2ec219f6a
commit da7bf56c03
@@ -153,7 +153,7 @@ export class CanvasPanel extends Component<Props, State> {
};
shouldComponentUpdate(nextProps: Props, nextState: State) {
const { width, height, data } = this.props;
const { width, height, data, options } = this.props;
let changed = false;
if (width !== nextProps.width || height !== nextProps.height) {
@@ -166,6 +166,11 @@ export class CanvasPanel extends Component<Props, State> {
changed = true;
}
if (options !== nextProps.options && !this.scene.ignoreDataUpdate) {
this.scene.updateData(nextProps.data);
changed = true;
}
if (this.state.refresh !== nextState.refresh) {
changed = true;
}