Optional
limit?: InputMaybe<LimitType>Optional
orderThe order by which to sort the profiles
Query for the profile search
Optional
where?: InputMaybe<ProfileSearchWhere>Filtering criteria for profile search
Experimental
useSearchProfiles
is a paginated hook that lets you search for profiles based on a defined criteria
This signature supports React Suspense.
const { data } = useSearchProfiles({
query: 'foo',
suspense: true,
});
console.log(data);
Use startTransition to avoid to re-suspend the component.
const [query, setQuery] = useState('bob');
const { data } = useSearchProfiles({
query,
suspense: true,
});
const search = () => {
startTransition(() => {
setQuery('foo');
});
};
This API can change without notice
useSearchProfiles
is a paginated hook that lets you search for profiles based on a defined criteria