// the find
pozil/sfdc-ui-lookup-lwc
Salesforce Lookup Component built with Lightning Web Components.
A custom lookup/autocomplete component for Salesforce LWC that fills a real gap — Salesforce's native `lightning-record-picker` didn't ship until Winter '24, so this existed in a vacuum for years. It's for Salesforce developers who need a lookup that works across multiple object types, supports multi-select, or needs a data source that isn't strictly Salesforce records.
Client-side caching and request throttling are built into the component, not left as an exercise for the consumer. Multi-object and multi-selection support in a single component is genuinely useful and still missing from the native alternative. The test coverage is real — four separate test files covering event firing, event handling, exposed functions, and rendering. The README is unusually honest: it leads with a comparison table that actively tells you when you should use the native component instead.
No mobile support, which the README admits upfront — in a world where Salesforce Mobile is common, this is a real constraint, not a minor footnote. The data fetching contract is entirely your problem: you write the Apex, you handle caching, you handle permissions if you're on Apex (and the README warns 'use this with caution'). The `scrollAfterNItems` attribute only accepts null, 5, 7, or 10 — that kind of arbitrary constraint suggests the implementation is brittle underneath. With `lightning-record-picker` now official and multi-select on its roadmap, this component is in slow decline unless your use case specifically requires non-Salesforce data sources.