MCPcopy Index your code
hub / github.com/react/react / resolveText

Function resolveText

packages/react-reconciler/src/__tests__/ReactTransition-test.js:161–169  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

159 }
160
161 function resolveText(text) {
162 if (caches.length === 0) {
163 throw Error('Cache does not exist.');
164 } else {
165 // Resolve the most recently created cache. An older cache can by
166 // resolved with `caches[index].resolve(text)`.
167 caches[caches.length - 1].resolve(text);
168 }
169 }
170
171 // @gate enableLegacyCache
172 it('isPending works even if called from outside an input event', async () => {

Calls

no outgoing calls

Tested by

no test coverage detected