Salesforce Decode
Salesforcedecode
Back to questions
LWCIntermediatewireldsperformance

Wire getListUi for standard list views vs custom Apex list LWC

Real World Scenario

Team builds custom Apex list LWC duplicating standard Case list view filters already defined in Salesforce list views.

Expected Answer

• getListUi wire with objectApiName listViewApiName for standard views • Respects list view filters and column FLS automatically • Custom Apex when cross-object join or computed columns required • refreshApex on list wire after record mutation affecting list membership • Compare wire list row limit vs business requirement • Fallback to Apex when getListUi unsupported object or filter • Document decision per list: standard wire vs custom in component catalog

Follow-Up Questions & Answers

Click to expand — each follow-up includes a direct, interview-ready answer

Stay within limits by: getListUi wire with objectApiName listViewApiName for standard views. Bulkify everything — never query or DML in loops. Custom Apex when cross-object join or computed columns required. Reimplementing list views in Apex wastes effort—getListUi first for standard object lists. Balance speed of delivery with maintainability.

Architect Perspective

Reimplementing list views in Apex wastes effort—getListUi first for standard object lists.