Download wp-calypso/packages/data-stores/src/reader/hooks/use-cache-key.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 290 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/reader/hooks/use-cache-key.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/data-stores/src/reader/hooks/use-cache-key.ts
-
curl -L -o use-cache-key.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/data-stores/src/reader/hooks/use-cache-key.ts
290 Bytes
| import buildQueryKey from '../helpers/query-key'; | |
| import useIsLoggedIn from './use-is-logged-in'; | |
| const useCacheKey = ( keyPrefix: ( number | string )[] ) => { | |
| const { id, isLoggedIn } = useIsLoggedIn(); | |
| return buildQueryKey( keyPrefix, isLoggedIn, id ); | |
| }; | |
| export default useCacheKey; | |