in src/RCD.js [132:147]
componentDidUpdate(prevProps) {
if (prevProps.lazyRadius !== this.props.lazyRadius) {
// Set new lazyRadius values
this.chainLength = this.props.lazyRadius * window.devicePixelRatio;
this.lazy.setRadius(this.props.lazyRadius * window.devicePixelRatio);
}
if (prevProps.saveData !== this.props.saveData) {
this.loadSaveData(this.props.saveData);
}
if (JSON.stringify(prevProps) !== JSON.stringify(this.props)) {
// Signal this.loop function that values changed
this.valuesChanged = true;
}
}