Download wp-calypso/client/dashboard/app/queries/sites.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 432 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/app/queries/sites.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/dashboard/app/queries/sites.ts
-
curl -L -o sites.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/dashboard/app/queries/sites.ts
432 Bytes
| import { fetchSites } from '../../data/me-sites'; | |
| import { SITE_FIELDS, SITE_OPTIONS } from '../../data/site'; | |
| import type { FetchSitesOptions } from '../../data/me-sites'; | |
| export const sitesQuery = ( | |
| fetchSitesOptions: FetchSitesOptions = { site_visibility: 'visible', include_a8c_owned: false } | |
| ) => ( { | |
| queryKey: [ 'sites', SITE_FIELDS, SITE_OPTIONS, fetchSitesOptions ], | |
| queryFn: () => fetchSites( fetchSitesOptions ), | |
| } ); | |