Skip to content

Memoized component not rendered in ListEmptyComponent #1983

@likeSo

Description

@likeSo

Description

A memoized component could not be rendered as a ListEmptyComponent

Current behavior

When I pass a memoized component to ListEmptyComponent, nothing happens, nothing rendered.

Expected behavior

Works as normal

Reproduction

Expo Snack or minimal reproduction link:

https://snack.expo.dev/@likeso/flashlist-listemptycomponent-reproduce

Platform

  • iOS
  • Android
  • Web (if applicable)

Environment

React Native info output:
Paste output here

FlashList version:
^2.0.2

Additional context

Remove React.memo or use inline components is a workaround

Checklist

  • I've searched existing issues and couldn't find a duplicate
  • I've provided a minimal reproduction (Expo Snack preferred)
  • I'm using the latest version of @shopify/flash-list
  • I've included all required information above

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions