Skip to content

Move class components to React Hooks#2322

Merged
corinagum merged 47 commits intomicrosoft:masterfrom
corinagum:fix-1818
Aug 22, 2019
Merged

Move class components to React Hooks#2322
corinagum merged 47 commits intomicrosoft:masterfrom
corinagum:fix-1818

Conversation

@corinagum
Copy link
Copy Markdown
Contributor

@corinagum corinagum commented Aug 15, 2019

Fix #2322
Fix #1818

Changelog Entry

Description

Please see list below for which components have been 'Hooked'. Components with a PR/issue associated with it are either already Hooked, or are being tracked by that issue.

Specific Changes

  • Move to React Hooks
  • add npm run start:playground script
  • add npm run start:docker script

Previously class components:

Component name Legacy lifecycle Hooked
AdaptiveCardAttachments ✔️
AnimationCardAttachments ✔️
CommonCard ✔️
HeroCardAttachment ✔️
OAuthCardAttachment ✔️
ReceiptCardAttachment ✔️
ThumbnailCardAttachment ✔️
FullReactWebChat #2308
BasicWebChat ✔️ #2345
Composer ✔️ #2310
Dictation ✔️
ConnectivityStatus ✔️
UploadButton ✔️
CroppedImage ✔️
RelativeTime ✔️ ✔️
Timer ✔️ #2313
Box ✔️
App.js (Playground) ✔️
JSONDebugView ✔️

  • Testing Added

@coveralls
Copy link
Copy Markdown

coveralls commented Aug 15, 2019

Coverage Status

Coverage increased (+0.3%) to 66.388% when pulling 7493ae7 on corinagum:fix-1818 into eb6aa67 on microsoft:master.

@corinagum corinagum marked this pull request as ready for review August 22, 2019 17:22
@corinagum corinagum requested a review from tonyanziano as a code owner August 22, 2019 17:22
@corinagum corinagum changed the title DRAFT Fix 1818 Move class components to React Hooks Aug 22, 2019
Copy link
Copy Markdown
Contributor

@compulim compulim left a comment

Choose a reason for hiding this comment

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

So excited to get this in!

Comment thread packages/bundle/src/adaptiveCards/Attachment/AnimationCardAttachment.js Outdated
Comment thread packages/bundle/src/adaptiveCards/Attachment/CommonCard.js
Comment thread packages/bundle/src/adaptiveCards/Attachment/HeroCardAttachment.js
Comment thread packages/bundle/src/adaptiveCards/Attachment/OAuthCardAttachment.js Outdated
Comment thread packages/bundle/src/adaptiveCards/Attachment/HeroCardAttachment.js Outdated
Comment thread packages/bundle/src/adaptiveCards/Attachment/ThumbnailCardAttachment.js Outdated
Comment thread packages/component/src/SendBox/ConnectivityStatus.js
Comment thread packages/playground/src/DebugAdaptiveCardAttachment.js Outdated
Comment thread packages/component/src/Utils/RelativeTime.js Outdated
Comment thread packages/component/src/SendBox/ConnectivityStatus.js Outdated
@corinagum corinagum merged commit 19d25b7 into microsoft:master Aug 22, 2019
@compulim compulim mentioned this pull request Oct 25, 2019
55 tasks
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.

Move to functional components with React Hooks

3 participants