toto10's picture
Upload folder using huggingface_hub (#4)
ea35075
raw
history blame
324 Bytes
import { useCallback, useState } from 'react'
const createNewObject = (): Record<string, never> => ({})
export default function useForceUpdate(): VoidFunction {
const [, setValue] = useState<Record<string, never>>(createNewObject)
return useCallback((): void => {
setValue(createNewObject())
}, [])
}