Skip to content

Commit

Permalink
Remove useMutationEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessidhia committed Dec 3, 2018
1 parent f15a022 commit c22f789
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions types/react/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -834,17 +834,6 @@ declare namespace React {
*/
// TODO (TypeScript 3.0): <T extends unknown>
function useRef<T>(initialValue: T|null): RefObject<T>;
/**
* The signature is identical to `useEffect`, but it fires synchronously during the same phase that
* React performs its DOM mutations, before sibling components have been updated. Use this to perform
* custom DOM mutations.
*
* Prefer the standard `useEffect` when possible to avoid blocking visual updates.
*
* @version experimental
* @see https://reactjs.org/docs/hooks-reference.html#usemutationeffect
*/
function useMutationEffect(effect: EffectCallback, inputs?: InputIdentityList): void;
/**
* The signature is identical to `useEffect`, but it fires synchronously after all DOM mutations.
* Use this to read layout from the DOM and synchronously re-render. Updates scheduled inside
Expand Down

0 comments on commit c22f789

Please sign in to comment.