MCPcopy Index your code
hub / github.com/testing-library/react-hooks-testing-library / updateResult

Function updateResult

src/core/index.ts:28–31  ·  view source on GitHub ↗
(value?: TValue, error?: Error)

Source from the content-addressed store, hash-verified

26 }
27
28 const updateResult = (value?: TValue, error?: Error) => {
29 results.push({ value, error })
30 resolvers.splice(0, resolvers.length).forEach((resolve) => resolve())
31 }
32
33 return {
34 result,

Callers 1

resultContainerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…