Skip to content

Commit edb975c

Browse files
authored
Merge pull request #5209 from exedealer/patch-1
FIx parameter description in getHookState function
2 parents f53c217 + 36e65a8 commit edb975c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hooks/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ options.unmount = vnode => {
166166
/**
167167
* Get a hook's state from the currentComponent
168168
* @param {number} index The index of the hook to get
169-
* @param {number} type The index of the hook to get
169+
* @param {number} type The type of the hook to get
170170
* @returns {any}
171171
*/
172172
function getHookState(index, type) {

0 commit comments

Comments
 (0)