Skip to content

bug: Specifying a prop on InfiniteScrollPaginator on NotificationDropdown's Paginator props breaks the component #365

@humbkr

Description

@humbkr

Describe the bug

Specifying the Paginator prop as a JSX element breaks NotificationDropdown: no notifications nor loader are displayed, the content is empty.

To Reproduce

<StreamApp apiKey={apiKey} appId={appId} token={token}>
  <NotificationDropdown
    notify
    right
    width={400}
    Paginator={<InfiniteScrollPaginator />}
  />
</StreamApp>

It works with:
Paginator={InfiniteScrollPaginator}

Use case:
I need to specify a custom Loader prop on InfiniteScrollPaginator and it's impossible due to this bug.

Expected behavior

I can pass a custom paginator component as a Component or like for the other props.

Screenshots

N/A

Desktop (please complete the following information):

  • OS: macos monterey
  • Browser: chrome
  • Version: 104

Smartphone (please complete the following information):

N/A

Additional context

N/A

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