Closed Anders2303 closed 2 months ago
For the settings, could it be this line from wellpicksLayer.tsc
?
const [newSettings, setNewSettings] = React.useState<Partial<WellpicksLayerSettings>>({});
// ...
React.useEffect(
function propagateSettingsChange() {
props.layer.maybeUpdateSettings(newSettings);
props.layer.maybeRefetchData();
setNewSettings({});
},
[newSettings, props.layer]
);
Wouldnt this effect cause itself to always re-trigger, since it both depends on newSettings
, and sets it to a new object every time?
Duplicate of #721 but with more info.
For the settings, could it be this line from
wellpicksLayer.tsc
?const [newSettings, setNewSettings] = React.useState<Partial<WellpicksLayerSettings>>({}); // ... React.useEffect( function propagateSettingsChange() { props.layer.maybeUpdateSettings(newSettings); props.layer.maybeRefetchData(); setNewSettings({}); }, [newSettings, props.layer] );
Wouldnt this effect cause itself to always re-trigger, since it both depends on
newSettings
, and sets it to a new object every time?
Looks like a plausible candidate :+1:
Adding a well-pick layer to the
Intersection
module causes significant frame-drops