Skip to content

Commit

Permalink
Fix the set hook ref
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianbote committed Oct 31, 2019
1 parent f194093 commit f99b9ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compat/test/browser/forwardRef.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ describe('forwardRef', () => {
const Inner = forwardRef((props, ref) => {
const _hook = useState(null);
_ref = ref;
_set = _hook.setState;
_set = _hook[1];
return <div ref={ref} />;
});

Expand Down

0 comments on commit f99b9ff

Please sign in to comment.