Skip to content

Commit 225524d

Browse files
committed
renderResult -> pendingResult
Conceptually the state is pending to be committed. So this makes more sense than tying it to "render"
1 parent 850a3f7 commit 225524d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pure.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ function renderHook(renderCallback, options = {}) {
237237
const result = React.createRef()
238238

239239
function TestComponent({renderCallbackProps}) {
240-
const renderResult = renderCallback(renderCallbackProps)
240+
const pendingResult = renderCallback(renderCallbackProps)
241241

242242
React.useEffect(() => {
243-
result.current = renderResult
243+
result.current = pendingResult
244244
})
245245

246246
return null

0 commit comments

Comments
 (0)