import { didRefChange } from './didRefChange' ; import { HookEffects } from './types' ; import { useRef } from './useRef' ; export function * useDepChange < A > ( dep , firstRun = true ) { const [ ref , setRef ] = yield * useRef < unknown , A > ( ) ; return didRefChange ( ref , setRef , dep , firstRun ) ; }