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: getting same entry of the same activity for multiple times if a user has opened multiple tabs #368

Open
krupesh-j opened this issue Oct 19, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@krupesh-j
Copy link

krupesh-j commented Oct 19, 2022

We have the functionality to show notifications to users, and for that, we use the getstream.io service and react-activity-feed package.
When a user subscribes to the StramApp & NotificationDropdown component we get that response through getstream's API (GET method).

The issue here we are facing - If a user has opened two or multiple tabs, and subscribes to the StreamApp & NotificationDropdown component on each tab then we are getting multiple entries of the same activity.

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:
Create your application with react-activity-feed, keep multiple tabs open at the same time, subscribe or visit each tab one by one (not necessary), and see the API response that you get from activities.

Expected behavior

Even if multiple tabs are open then we should not get multiple instances of the same activity.

Desktop:

  • OS: Mac, Windows, Ubuntu
  • Browser: Chrome, Safari
  • Version: Latest or older version
@krupesh-j krupesh-j added the bug Something isn't working label Oct 19, 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