@atlaskit/global-search
Version:
A cross-product search component (batteries included)
17 lines (14 loc) • 430 B
JavaScript
import PeopleSearchClientImpl from './PeopleSearchClient';
export class CachingPeopleSearchClient extends PeopleSearchClientImpl {
constructor(url, cloudId) {
super(url, cloudId);
}
async getRecentPeople() {
if (this.prefetchPeople) {
return await this.prefetchPeople;
}
const prefetchedPeople = super.getRecentPeople();
this.prefetchPeople = prefetchedPeople;
return prefetchedPeople;
}
}