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

[AMSDK-11201] - Differentiate XDM vs standard shared state via eventName #593

Merged
merged 1 commit into from
Mar 31, 2021

Conversation

PravinPK
Copy link
Contributor

Different eventName to differentiate between XDM vs standard shared state change event

Standard state change event name = "Shared state change"
XDM state change event name = "Shared state change (XDM)"

Unit tests are updated

@@ -180,7 +180,7 @@ final class EventHub {
}

sharedState.set(version: version, data: data)
self.dispatch(event: self.createSharedStateEvent(extensionName: extensionName))
self.dispatch(event: self.createSharedStateEvent(extensionName: extensionName, sharedStatetype: sharedStateType))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

@shalehaha shalehaha changed the base branch from dev-v3.1.0 to staging March 31, 2021 14:52
@codecov
Copy link

codecov bot commented Mar 31, 2021

Codecov Report

Merging #593 (37327fd) into staging (84f7c9c) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff            @@
##           staging     #593   +/-   ##
========================================
  Coverage    85.27%   85.27%           
========================================
  Files          102      102           
  Lines         4541     4542    +1     
========================================
+ Hits          3872     3873    +1     
  Misses         669      669           

@shalehaha shalehaha merged commit d311c29 into adobe:staging Mar 31, 2021
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.

2 participants