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

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

Open
humbkr opened this issue Sep 8, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@humbkr
Copy link

humbkr commented Sep 8, 2022

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

@humbkr humbkr added the bug Something isn't working label Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant