Skip to content

Commit

Permalink
Use EffectCallback type
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Oct 29, 2020
1 parent 11793bd commit 279497d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/utils/hooks/use-update-effect.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useRef, useEffect } from '@wordpress/element';
* Source:
* https://github.com/reakit/reakit/blob/master/packages/reakit-utils/src/useUpdateEffect.ts
*
* @param {()=>void} effect
* @param {import('react').EffectCallback} effect
* @param {import('react').DependencyList} deps
*/
function useUpdateEffect( effect, deps ) {
Expand Down

0 comments on commit 279497d

Please sign in to comment.