import { useCallback , useState } from 'react' ; import { object } from '@remirror/core' ; internal export function useForceUpdate ( ) { const [ , setState ] = useState ( object ( ) ) ; return useCallback ( ( ) : void => { setState ( object ( ) ) ; } , [ ] ) ; }