Hooks
Embedded hooks¶
In addition to our React Integration, Cozy Client comes with several hooks.
- useAppLinkWithStoreFallback: Returns the URL of an app if this app is installed. If not, returns the URL to the store to install it.
- useCapabilities: Returns the capabilities for an instance
- useFetchShortcut: Returns the data for a shortcut
- useClient: Returns client of actual context
- useFetchJSON: Hook to use the generic fetchJSON method. Returns object with the same keys { data, fetchStatus, error } as useQuery
- useQuery: Returns the queryState after fetching a queryDefinition