Skip to main content
Version: Next

SearchContextValue

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

Signature:

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

References: SearchResultSet, JsonObject, SearchContextState