Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified

Query Just In Time Message

<QueryJITM /> is a React component used in fetching JITMs for the selected site.

Usage

Render the component, passing siteId, messagePath and optional sectionName. 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.

Props

siteId

TypeNumber
RequiredYes

The site ID for which JITM data should be queried.

sectionName

TypeString
RequiredNo

The section name for which JITM data should be queried. When this is set, JITMs are queried wherever section changes.

messagePath

TypeString
RequiredYes

The messagePath of the JITMs you want to retreive.