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

Function update

packages/core/src/hooks/useSpring.test.tsx:456–457  ·  view source on GitHub ↗
(...args: [Args[0], Args[1]?])

Source from the content-addressed store, hash-verified

454
455 type Args = Parameters<typeof useSpring>
456 const update = (...args: [Args[0], Args[1]?]) =>
457 renderWithContext((prevElem = <Component args={args} />))
458
459 return [update, context] as const
460}

Callers 6

useSpring.test.tsxFile · 0.70
useTrail.test.tsxFile · 0.70
Controller.test.tsFile · 0.50

Calls 1

renderWithContextFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…