MCPcopy Create free account
hub / github.com/adobe/react-spectrum / LoadingView

Function LoadingView

packages/@adobe/react-spectrum/src/list/ListView.tsx:394–409  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

392}
393
394function LoadingView() {
395 let {state} = useContext(ListViewContext)!;
396 let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/list');
397 return (
398 <CenteredWrapper>
399 <ProgressCircle
400 isIndeterminate
401 aria-label={
402 state.collection.size > 0
403 ? stringFormatter.format('loadingMore')
404 : stringFormatter.format('loading')
405 }
406 />
407 </CenteredWrapper>
408 );
409}
410
411function EmptyState() {
412 let {renderEmptyState} = useContext(ListViewContext)!;

Callers

nothing calls this directly

Calls 2

formatMethod · 0.45

Tested by

no test coverage detected