You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting following warnings when using ImmutableVirtualizedList
YellowBox.js:71 iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. Error
at Object.getItemCount (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:96434:37)
at VirtualizedList.render (http://localhost:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:40071:34)
It seems to be linked to this line: getItemCount={(items) => (items.size || items.length || 0)}
Should we remove items.length removed as warning says ?
Hi @loiclouvet, this is caused when items.size is 0 so it mistakenly falls back to trying to get items.length. Silly oversight on my part, it was just meant as a backup to allow Immutable data containing mutable data.
In the next release, I'm going to disallow this type of mixed data and this will no longer be an issue; I'll remove items.length. Thanks for the report!
Hello there !
I'm getting following warnings when using ImmutableVirtualizedList
It seems to be linked to this line:
getItemCount={(items) => (items.size || items.length || 0)}
Should we remove
items.length
removed as warning says ?Stack:
immutable: ^3.8.1
react-native-immutable-list-view: ^0.5.0
The text was updated successfully, but these errors were encountered: