import * as React from 'react' ; export function useEffectOnSerializableUpdates < T > ( value , serialize , onChange ) { React . useEffect ( ( ) => onChange ( value ) , [ onChange , serialize ( value ) ] ) ; }