Skip to content

Add React Hooks for customization (part 15)#2644

Merged
compulim merged 4 commits intomicrosoft:masterfrom
compulim:feat-redux-hooks-15
Dec 3, 2019
Merged

Add React Hooks for customization (part 15)#2644
compulim merged 4 commits intomicrosoft:masterfrom
compulim:feat-redux-hooks-15

Conversation

@compulim
Copy link
Copy Markdown
Contributor

@compulim compulim commented Nov 29, 2019

Related to #2539

Changelog Entry

  • Resolves #2539, added React hooks for customization, by @compulim, in the following PRs:
    • PR #2644: Added internal/useWebChatUIContext for cleaner code

Description

Cleaning up some code by adding a new useWebChatUIContext. This hook is for internal use only.

Specific Changes

  • Added component/src/hooks/useWebChatUIContext.js
    • Updated other hooks that call useContext(WebChatUIContext) to call useWebChatUIContext instead

  • Testing Added
    • No tests added because it should be covered by other tests

Comment thread packages/component/src/hooks/internal/useWebChatUIContext.js Outdated
Copy link
Copy Markdown
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.

Much better :) Approved pending single comment

@compulim compulim force-pushed the feat-redux-hooks-15 branch from 8200a7c to 1706406 Compare December 3, 2019 03:16
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.003%) to 63.696% when pulling 1706406 on compulim:feat-redux-hooks-15 into e4c7e20 on microsoft:master.

@compulim compulim merged commit ff726de into microsoft:master Dec 3, 2019
@compulim compulim deleted the feat-redux-hooks-15 branch December 3, 2019 05:33
@corinagum corinagum added the R7 label Dec 3, 2019
@compulim compulim mentioned this pull request Dec 10, 2019
73 tasks
@corinagum corinagum mentioned this pull request Dec 13, 2019
73 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 Redux Hooks

3 participants