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 850a3f7 commit 225524dCopy full SHA for 225524d
src/pure.js
@@ -237,10 +237,10 @@ function renderHook(renderCallback, options = {}) {
237
const result = React.createRef()
238
239
function TestComponent({renderCallbackProps}) {
240
- const renderResult = renderCallback(renderCallbackProps)
+ const pendingResult = renderCallback(renderCallbackProps)
241
242
React.useEffect(() => {
243
- result.current = renderResult
+ result.current = pendingResult
244
})
245
246
return null
0 commit comments