Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified

Query Jetpack Connection

<QueryJetpackConnection /> is a React component used in managing network requests for Jetpack site connection status.

Usage

Render the component, passing siteId. It does not accept any children, nor does it render any elements to the page. You can use it adjacent to other sibling components which make use of the fetched data made available through the global application state.

import QueryJetpackConnection from 'calypso/components/data/query-jetpack-connection';
import MyJetpackConnectionStatusBlock from './status-block';

export default function MyJetpackConnectionStatus( { jetpackConnection } ) {
    return (
        <div>
            <QueryJetpackConnection siteId={ 12345678 } />
            <MyJetpackConnectionStatusBlock connectionStatus={ jetpackConnection } />
        </div>
    );
}

Props

siteId

TypeNumber
RequiredYes

The site ID for which Jetpack connection status should be requested.