Skip to content

Commit 78dbb26

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 092aaaa commit 78dbb26

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
@@ -120,10 +120,10 @@ function renderHook(renderCallback, options = {}) {
120120
const result = React.createRef()
121121

122122
function TestComponent({renderCallbackProps}) {
123-
const renderResult = renderCallback(renderCallbackProps)
123+
const pendingResult = renderCallback(renderCallbackProps)
124124

125125
React.useEffect(() => {
126-
result.current = renderResult
126+
result.current = pendingResult
127127
})
128128

129129
return null

0 commit comments

Comments
 (0)