Skip to content

Conversation

tonyanziano
Copy link
Contributor

@tonyanziano tonyanziano commented Oct 16, 2019

Fixes #1701

===

Web Chat was being completely re-rendered, which was causing Adaptive Card state to be wiped. The following interactions with Web Chat would cause this:

  1. Sending messages in the chat
  2. Clicking on activities and selecting / highlighting them

The fix prevents these re-renders by fixing the way app state was being plumbed through the components.

The entire document object is no longer plumbed down through the emulator.tsx component and its children. Instead, documentId is plumbed through these components, and then each component uses this id to fetch whatever relevant information from the store that it needs.


Also added electron-devtools-installer which resolves #1650 , and adds React Dev Tools as well as Redux Dev Tools.

===

Still need to add / fix tests.

@coveralls
Copy link

coveralls commented Oct 18, 2019

Coverage Status

Coverage increased (+0.05%) to 66.949% when pulling 945d084 on toanzian/adaptive-fix into 5f34abf on master.

@tonyanziano tonyanziano force-pushed the toanzian/adaptive-fix branch from 2a3cc9a to b6e4613 Compare October 18, 2019 19:10
@tonyanziano tonyanziano marked this pull request as ready for review October 18, 2019 19:44
corinagum
corinagum previously approved these changes Oct 18, 2019
Copy link
Contributor

@corinagum corinagum left a comment

Choose a reason for hiding this comment

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

LGTM

@tonyanziano
Copy link
Contributor Author

tonyanziano commented Oct 21, 2019

Don't merge this yet, I think there might be a bug with the activity middleware.

Should be all good now

@tonyanziano tonyanziano merged commit 2717295 into master Oct 22, 2019
@tonyanziano tonyanziano deleted the toanzian/adaptive-fix branch October 22, 2019 17:30
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.

Adaptive Card content is cleared on submit [DEV IMPROVEMENT] Consider electron-devtools-installer
3 participants