Error handling #1874
ryanvazquez
started this conversation in
General
Error handling
#1874
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Feature Request: Error Handling Support in FlashList
Problem
We currently use FlashList to render an infinite social feed. A common error handling pattern is to check for an error and render a fallback component:
Issue: This approach completely unmounts FlashList when an error occurs, requiring a full remount after the error is cleared. This results in:
Workaround
Errors could be handled at the call site and ignored to keep FlashList mounted:
Limitation: While this keeps FlashList mounted, it provides no visual feedback to users about the error state in the list itself.
Proposed Solution
Add built-in error handling support to FlashList, similar to how
ListEmptyComponent
works:This would allow FlashList to:
Beta Was this translation helpful? Give feedback.
All reactions