react-code-dataset / wp-calypso /client /state /selectors /get-atomic-hosting-is-loading-sftp-users.js
react-code-dataset / wp-calypso /client /state /selectors /get-atomic-hosting-is-loading-sftp-users.js
Download wp-calypso/client/state/selectors/get-atomic-hosting-is-loading-sftp-users.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 434 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/get-atomic-hosting-is-loading-sftp-users.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/selectors/get-atomic-hosting-is-loading-sftp-users.js
-
curl -L -o get-atomic-hosting-is-loading-sftp-users.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/get-atomic-hosting-is-loading-sftp-users.js
434 Bytes
| import 'calypso/state/hosting/init'; | |
| /** | |
| * Returns if the SFTP users data loaded for given site. | |
| * @param {Object} state Global state tree | |
| * @param {number|null} siteId The ID of the site we're querying | |
| * @returns {boolean} If the SFTP users data has finished the first request | |
| */ | |
| export function getAtomicHostingIsLoadingSftpUsers( state, siteId ) { | |
| return state.atomicHosting?.[ siteId ]?.isLoadingSftpUsers ?? true; | |
| } | |