Skip to main content

SearchContextValue

Home > @backstage/plugin-search-react > SearchContextValue

Signature:

export type SearchContextValue = {
result: AsyncState<SearchResultSet>;
setTerm: React.Dispatch<React.SetStateAction<string>>;
setTypes: React.Dispatch<React.SetStateAction<string[]>>;
setFilters: React.Dispatch<React.SetStateAction<JsonObject>>;
setPageLimit: React.Dispatch<React.SetStateAction<number | undefined>>;
setPageCursor: React.Dispatch<React.SetStateAction<string | undefined>>;
fetchNextPage?: React.DispatchWithoutAction;
fetchPreviousPage?: React.DispatchWithoutAction;
} & SearchContextState;

References: SearchResultSet, JsonObject, SearchContextState