Skip to content

Crashes flatlist component #12

@LuD1161

Description

@LuD1161

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 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions