We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 092aaaa commit 78dbb26Copy full SHA for 78dbb26
src/pure.js
@@ -120,10 +120,10 @@ function renderHook(renderCallback, options = {}) {
120
const result = React.createRef()
121
122
function TestComponent({renderCallbackProps}) {
123
- const renderResult = renderCallback(renderCallbackProps)
+ const pendingResult = renderCallback(renderCallbackProps)
124
125
React.useEffect(() => {
126
- result.current = renderResult
+ result.current = pendingResult
127
})
128
129
return null
0 commit comments