-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ListView] Cryptic errors from renderHeader and renderSectionHeader #1379
Comments
@ccheever - Have any time to put together a PR to fix this? High quality error messages are very important for dev workflow 😄 |
@brentvatne - sorry haven't had time yet :/ |
💃 |
Hi there! This issue is being closed because it has been inactive for a while. But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/listview-cryptic-errors-from-renderheader-and-rendersectionheader ProductPains helps the community prioritize the most important issues thanks to its voting feature. Also, if this issue is a bug, please consider sending a PR with a fix. We rely on the community to provide |
If you try throwing an error from an implementation of
renderRow
orrenderSectionHeader
in aListView
, you get a very cryptic error message with a stack trace that doesn't point to the problematic code at all.A similar problem also occurs if either of those methods returns
undefined
.It would be good if those weren't so cryptic (maybe wrapped in a
try/catch
?).The text was updated successfully, but these errors were encountered: