MCPcopy
hub / github.com/testshallpass/react-native-dropdownalert / _alertWithData

Function _alertWithData

DropdownAlert.tsx:345–359  ·  view source on GitHub ↗
(data?: DropdownAlertData)

Source from the content-addressed store, hash-verified

343 ]);
344
345 function _alertWithData(data?: DropdownAlertData) {
346 const dropdownAlertData: DropdownAlertData = {
347 source: data?.source ? data.source : _getSourceForType(data?.type),
348 interval: data?.interval ? data.interval : dismissInterval,
349 ...data,
350 };
351 const promise = new Promise<DropdownAlertData>(
352 resolve => (dropdownAlertData.resolve = resolve),
353 );
354 queue.current.enqueue(dropdownAlertData);
355 if (queue.current.size === 1) {
356 _alert(queue.current.first);
357 }
358 return promise;
359 }
360 alert(_alertWithData);
361
362 async function _alert(data: DropdownAlertData) {

Callers

nothing calls this directly

Calls 3

_getSourceForTypeFunction · 0.85
_alertFunction · 0.85
enqueueMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…