Skip to content

Commit d649879

Browse files
committed
.
1 parent ac024ff commit d649879

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/native-expo/src/TestList.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ interface ListItemProps {
2222
}
2323

2424
const ListItem = ({ title }: ListItemProps) => {
25-
// Uncomment to introduce a performance issue
26-
// const [, forceRender] = React.useState<{}>();
27-
// React.useEffect(() => {
28-
// forceRender({});
29-
// }, [title]);
25+
// Intentionally causing an extra re-render
26+
const [, forceRender] = React.useState<{}>();
27+
React.useEffect(() => {
28+
forceRender({});
29+
}, [title]);
3030

3131
return (
3232
<View>

0 commit comments

Comments
 (0)