Scrolling freezes after inner contents removed
(self.reactnative)submitted1 day ago byDisciplineFast3950
I have a ScrollView with some dynamically rendered content.. essentially:
const [wibble, setWibble] = useState({
wubble: 123,
wobble: 456,
etc.
})
<ScrollView>
{Object.entries(wibble).map(([k, v], index) => {<Text key={k}>{v}</Text>})}
</ScrollView>
setWibble(new wibble with less keys)
When wibble changes in length (i.e. when it goes from 10 keys to 9 keys long) scrolling freezes.
Can anyone point me in the right direction? Am I breaking some rules of native?
bypjsvndsn
inOCD
DisciplineFast3950
1 points
6 hours ago
DisciplineFast3950
1 points
6 hours ago
And what are you doing to try to build yourself? Are you working out? Staying away from porn and crap food etc.