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

Method getData

packages/react-aria/test/dnd/mocks.js:125–127  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

123 }
124
125 getData(type) {
126 return this.items._items.find(item => item.kind === 'string' && item.type === type)?._data;
127 }
128
129 clearData(type) {
130 if (type) {

Callers 3

onPasteFunction · 0.80
readFromDataTransferFunction · 0.80
TokenField.tsxFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected