We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7823d77 commit f4c10edCopy full SHA for f4c10ed
examples/native-expo/src/TestList.tsx
@@ -22,11 +22,11 @@ interface ListItemProps {
22
}
23
24
const ListItem = ({ title }: ListItemProps) => {
25
- // Uncomment to introduce a performance issue
26
- // const [, forceRender] = React.useState<{}>();
27
- // React.useEffect(() => {
28
- // forceRender({});
29
- // }, [title]);
+ // Intentionally causing an extra re-render
+ const [, forceRender] = React.useState<{}>();
+ React.useEffect(() => {
+ forceRender({});
+ }, [title]);
30
31
return (
32
<View>
0 commit comments