Skip to content

Commit 2a2567b

Browse files
committed
fix: forwardRef argument count
1 parent 18adfdc commit 2a2567b

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ after_script:
88
- yarn codecov
99

1010
after_success:
11-
- yarn semantic-release
11+
- yarn travis-deploy-once "yarn semantic-release"
1212

1313
cache: yarn
1414
branches:

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
"prepublishOnly": "yarn run build",
2121
"lint": "eslint . && prettier --list-different --ignore-path .eslintignore '**/*.{json,css,md}'",
2222
"format": "eslint . --fix && prettier --write --ignore-path .eslintignore '**/*.{json,css,md}'",
23-
"precommit": "lint-staged",
24-
"travis-deploy-once": "travis-deploy-once",
25-
"semantic-release": "semantic-release"
23+
"precommit": "lint-staged"
2624
},
2725
"publishConfig": {
2826
"access": "public"

src/forwardRef.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default function forwardRef(
44
renderFn,
55
{ displayName, propTypes, defaultProps, allowFallback = false },
66
) {
7-
const render = (...args) => renderFn(...args);
7+
const render = (props, ref) => renderFn(props, ref);
88

99
Object.assign(render, { displayName });
1010

0 commit comments

Comments
 (0)