web / lib/hooks/use-catalogs-query
lib/hooks/use-catalogs-query
React Query hook for fetching catalogs with their datasets.
Used by the import wizard’s dataset selection step.
Interfaces
CatalogWithDatasets
Properties
id
id:
number
name
name:
string
datasets
datasets:
object[]
id
id:
number
name
name:
string
Variables
catalogsQueryKeys
constcatalogsQueryKeys:object
Type Declaration
all
all: readonly [
"catalogs"]
withDatasets()
withDatasets: () => readonly [
"catalogs","with-datasets"]
Returns
readonly ["catalogs", "with-datasets"]
Functions
useCatalogsQuery()
useCatalogsQuery():
UseQueryResult<CatalogsResponse,Error>
Returns
UseQueryResult<CatalogsResponse, Error>
Last updated on