Spaces:
Configuration error
Configuration error
Download src/components/hooks/useForceUpdate.ts from SreejithSHR/umami: direct link, hf CLI and curl.
- Browser
- Download file 248 Bytes
-
https://huggingface.co/spaces/SreejithSHR/umami/resolve/main/src/components/hooks/useForceUpdate.ts
- Command line
-
hf download hf://spaces/SreejithSHR/umami/src/components/hooks/useForceUpdate.ts
-
curl -L -o useForceUpdate.ts https://huggingface.co/spaces/SreejithSHR/umami/resolve/main/src/components/hooks/useForceUpdate.ts
248 Bytes
| import { useCallback, useState } from 'react'; | |
| export function useForceUpdate() { | |
| const [, update] = useState(Object.create(null)); | |
| return useCallback(() => { | |
| update(Object.create(null)); | |
| }, [update]); | |
| } | |
| export default useForceUpdate; | |