QYHOJMYCWRCAMP6YPVGTBWSOOIDZI7Z2IMGODEA5UUJFMMYZCFCQC
FPECYSD5K4I23LPBSJW2AOILTFLJE55HQ34FMK6CKTBUOFBUL6XAC
3UFL673QX2JG7KHTAM7DFH4BBYVHDNMXBS2RW45G3JBNFZFLSRRQC
CZPLX4O4R7K3TF3NSAL5PT7NO3CUOLDY3OR332GBIYYNKMZTW24AC
R5HN6TNA5PO3DSVZ3ALMMBEO4HREQUTKIJJ7VEISOTRSFRBEDKYAC
DHO4JCJIELKX4R42XXAMAHVQTTE6OWULLP2QF4BXO3UWC5UTMSMAC
3J7QNHQ4F2VBYCK6SWKPO3AW3YYAJZNWOW6XNSURSRDZOE2ZIGQAC
WPC667PRTGRE7BNP6E7ZCQIKXYMIHJT3LUTTQT7VX2HQVRBXNIKAC
QUT2VGNOS2XSDLSYCSMILCKF343M56MRPRSUWN4GXWPGCK6APK2QC
PWXZFCENNLWYEKNPRXSV3FC7VSARURBC6JECKGJCCZC6YP3PN2DQC
if (!this.shouldUpdate(this.staleProps, props)) { return; }
if (!this.shouldUpdate(this.staleProps, props)) {
// we think we don't need to update; however, we still need to
// update the chidlren that asked us to forcefully update them
let forceUpdates = [...this.forceUpdates];
this.forceUpdates = [];
for (let { instance, propsFactory } of forceUpdates) {
instance._update(propsFactory(props, this.state)); // why are we even calling props factory here?? theres no point... we should just tell the child to use their own stale props, like this:
// instance._forceUpdate();
}
// no need to do anything else -- stale props has not changed
return;
}
if (!this.shouldUpdate(this.staleProps, props, staleState, this.state)) { return; }
if (!this.shouldUpdate(this.staleProps, staleState, props, this.state)) {
// we think we don't need to update; however, we still need to
// update the chidlren that asked us to forcefully update them
let forceUpdates = [...this.forceUpdates];
this.forceUpdates = [];
for (let { instance, propsFactory } of forceUpdates) {
instance._update(propsFactory(props, this.state)); // why are we even calling props factory here?? theres no point... we should just tell the child to use their own stale props, like this:
// instance._forceUpdate();
}
// no need to do anything else -- stale props has not changed
return;
}
if (!this.shouldUpdate(this.staleProps, props)) { return; }
if (!this.shouldUpdate(this.staleProps, props)) {
// we think we don't need to update; however, we still need to
// update the chidlren that asked us to forcefully update them
let forceUpdates = [...this.forceUpdates];
this.forceUpdates = [];
for (let { instance, propsFactory } of forceUpdates) {
instance._update(propsFactory(props, this.state)); // why are we even calling props factory here?? theres no point... we should just tell the child to use their own stale props, like this:
// instance._forceUpdate();
}
// no need to do anything else -- stale props has not changed
return;
}