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

Function getFetchPriorityProp

packages/@react-spectrum/s2/src/Image.tsx:405–414  ·  view source on GitHub ↗
(
  fetchPriority?: 'high' | 'low' | 'auto'
)

Source from the content-addressed store, hash-verified

403});
404
405function getFetchPriorityProp(
406 fetchPriority?: 'high' | 'low' | 'auto'
407): Record<string, string | undefined> {
408 const pieces = version.split('.');
409 const major = parseInt(pieces[0], 10);
410 if (major >= 19) {
411 return {fetchPriority};
412 }
413 return {fetchpriority: fetchPriority};
414}

Callers 1

Image.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected