MCPcopy
hub / github.com/testing-library/react-hooks-testing-library / rerenderHook

Function rerenderHook

src/core/index.ts:61–64  ·  view source on GitHub ↗
(newProps = hookProps)

Source from the content-addressed store, hash-verified

59 render(hookProps)
60
61 const rerenderHook = (newProps = hookProps) => {
62 hookProps = newProps
63 rerender(hookProps)
64 }
65
66 const unmountHook = () => {
67 removeCleanup(unmountHook)

Callers

nothing calls this directly

Calls 1

rerenderFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…