Skip to content

Conversation

@Dosant
Copy link
Contributor

@Dosant Dosant commented Jan 2, 2020

Backports the following commits to 7.x:

As we recently added react-use as a dependency, makes sense to clean up those generic hooks from Kibana repo.

Removed custom hooks from kibana_react and other places:
useObservable
useUnmount
useShallowCompareEffect

react-use should be used instead:
import useObservable from 'react-use/lib/useObservable'
# Conflicts:
#	src/plugins/kibana_react/public/index.ts
#	x-pack/legacy/plugins/apm/public/context/LicenseContext/index.tsx
@Dosant Dosant added the backport This PR is a backport of another PR label Jan 2, 2020
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@Dosant Dosant merged commit c3f1d97 into elastic:7.x Jan 3, 2020
@Dosant Dosant deleted the backport/7.x/pr-53822 branch January 3, 2020 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants