Skip to content

Def mode to prevent duplicate listeners per topic - #123

Open
mig82 wants to merge 1 commit into
mikehostetler:masterfrom
mig82:master
Open

Def mode to prevent duplicate listeners per topic#123
mig82 wants to merge 1 commit into
mikehostetler:masterfrom
mig82:master

Conversation

@mig82

@mig82 mig82 commented Jun 25, 2019

Copy link
Copy Markdown

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