Skip to content
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

Crashes flatlist component #12

Open
LuD1161 opened this issue Oct 6, 2020 · 0 comments
Open

Crashes flatlist component #12

LuD1161 opened this issue Oct 6, 2020 · 0 comments

Comments

@LuD1161
Copy link
Contributor

LuD1161 commented Oct 6, 2020

Hi @PierreCapo
Thanks for the package here.
I am using this in a flatlist and after a few update of the feed component, I see that there's a warning :

Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.

And the next time I update the flatlist it crashes stating that

TypeError: undefined is not an object (evaluating 'data.created_at'

Whereas the same doesn't happen when I just use a Text component to render data.created_at.

Any ideas why this might be happening or how do I solve this 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant