import { useCallback, useState } from 'react' const createNewObject = (): Record => ({}) export default function useForceUpdate(): VoidFunction { const [, setValue] = useState>(createNewObject) return useCallback((): void => { setValue(createNewObject()) }, []) }