MCPcopy
hub / github.com/pmndrs/react-spring / renderWithContext

Function renderWithContext

packages/core/src/hooks/useSpring.test.tsx:446–453  ·  view source on GitHub ↗
(elem: React.JSX.Element)

Source from the content-addressed store, hash-verified

444 })
445
446 async function renderWithContext(elem: React.JSX.Element) {
447 const wrapped = (
448 <SpringContextProvider {...context}>{elem}</SpringContextProvider>
449 )
450 if (result) await result.rerender(wrapped)
451 else result = await render(wrapped)
452 return result
453 }
454
455 type Args = Parameters<typeof useSpring>
456 const update = (...args: [Args[0], Args[1]?]) =>

Callers 2

setFunction · 0.85
updateFunction · 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…