-
-
Couldn't load subscription status.
- Fork 2.8k
Open
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues and my issue is unique
- My issue appears in the command-line and not only in the text editor
Description Overview
When combining React.memo with React.forwardRef, react/no-unused-prop-types gives false positive.
import { Image } from "react-native";
type Props = {
foo: string;
};
const LazyImage = React.memo<Props>(
React.forwardRef<Image, Props>(
({ foo }, ref) => {
console.log("foo", foo);
return <Image ref={ref} />;
}
)
);Expected Behavior
No error
eslint-plugin-react version
v7.32.0
eslint version
v8.31.0
node version
v16.17.0
Yohandah, nnmax, matsgottenbos, davoam and brandongit2