'findAndUpdateNodes was passed a nullish node
I get this error in the console while dragging (react native web by the way). Otherwise everything seems to work perfectly. I don't know what it means, and why it happens, but I still want to get rid of it.
My code is quite simple, like this:
return (
<DraggableFlatList
style={styles.flatListStyle}
data={data}
onDragBegin={() => {
document.body.style.cursor = 'row-resize';
}}
onDragEnd={({ data }) => {
setData(data);
document.body.style.cursor = 'default';
}}
keyExtractor={(item) => item.id}
renderItem={({ item, index, drag, isActive }) => (
<ScaleDecorator>
<View style={styles.itemContainer}>
<Text style={styles.itemInfoText}>{(index || 0) + 1}</Text>
<Pressable
style={[styles.item, item.selected ? styles.leftItemSelected : {}]}
onLongPress={drag}
disabled={isActive}
>
<Text style={styles.itemText}>{item.name}</Text>
</Pressable>
</View>
</ScaleDecorator>
)}
/>
);
};
Is this normal? Any ideas what might cause it, and how to fix? Thanks.
Here's the error, it's quite long:
findAndUpdateNodes was passed a nullish node
warn @ react-native-logs.fx.ts:22
overrideMethod @ react_devtools_backend.js:3973
findAndUpdateNodes @ AnimatedNode.js:50
findAndUpdateNodes @ AnimatedNode.js:65
runPropUpdates @ AnimatedNode.js:72
requestAnimationFrame (async)
__markUpdated @ AnimatedNode.js:147
__forceUpdateCache @ AnimatedNode.js:136
_updateValue @ InternalAnimatedValue.js:85
AnimatedMainClock._this._runFrame @ AnimatedClock.js:17
requestAnimationFrame (async)
__attach @ AnimatedClock.js:26
__addChild @ AnimatedNode.js:183
start @ AnimatedClock.js:75
__onEvaluate @ AnimatedStartClock.js:23
__getValue @ AnimatedNode.js:127
val @ val.js:2
(anonymous) @ AnimatedBlock.js:25
__onEvaluate @ AnimatedBlock.js:24
__getValue @ AnimatedNode.js:127
val @ val.js:2
__onEvaluate @ AnimatedCond.js:44
__getValue @ AnimatedNode.js:127
val @ val.js:2
(anonymous) @ AnimatedBlock.js:25
__onEvaluate @ AnimatedBlock.js:24
__getValue @ AnimatedNode.js:127
val @ val.js:2
__onEvaluate @ AnimatedCond.js:44
__getValue @ AnimatedNode.js:127
val @ val.js:2
(anonymous) @ AnimatedBlock.js:25
requestAnimationFrame (async)
__markUpdated @ AnimatedNode.js:147
__forceUpdateCache @ AnimatedNode.js:136
_updateValue @ InternalAnimatedValue.js:85
setValue @ AnimatedValue.js:18
(anonymous) @ DraggableFlatList.js:79
(anonymous) @ RowItem.js:40
_performTransitionSideEffects @ PressResponder.js:437
_receiveSignal @ PressResponder.js:413
_handleLongPress @ PressResponder.js:520
(anonymous) @ PressResponder.js:231
setTimeout (async)
start @ PressResponder.js:230
onResponderGrant @ PressResponder.js:297
attemptTransfer @ ResponderSystem.js:484
eventListener @ ResponderSystem.js:289
Show 51 more frames
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
