SELECTION / SEARCH AND RECOVERY
Keep the right people in view.
Search remote options, load another page and keep the choices you have already made.
A person, not just a value.
Search a sample directory over HTTP. Selected IDs and labels stay available across result pages.
Connect your directory.
const loadPeople = useCallback(request => directory.search(request), [directory]);
const resolvePeople = useCallback(request => directory.resolve(request), [directory]);
<AsyncMultiSelect
label="Reviewers" value={reviewers} onValueChange={setReviewers}
loadOptions={loadPeople} resolveOptions={resolvePeople}
/>Use stable callbacks and change sourceKey when the data scope changes. The sample endpoint contains illustrative records and does not authenticate accounts.
Read the loading and selection contract