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

Def mode to prevent duplicate listeners per topic #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mig82
Copy link

@mig82 mig82 commented Jun 25, 2019

I've found myself in situations where the same listener gets added more than once due to the navigation flows of an application. This causes the subscriptions map to grow without control.
This change allows the developer to change the behaviour so that subscribe can be idempotent. Meaning that adding the same listener more than once to a topic only really adds it the first time.

mig82 added a commit to mig82/kronin that referenced this pull request Jul 31, 2019
This is based on my fork of AmplifyJS and PR
[here](mikehostetler/amplify#123)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant