diff --git a/_posts/2024-11-22-tvjs-scroll-performance-enhancement.md b/_posts/2024-11-22-tvjs-scroll-performance-enhancement.md index 19464221..eed279b1 100644 --- a/_posts/2024-11-22-tvjs-scroll-performance-enhancement.md +++ b/_posts/2024-11-22-tvjs-scroll-performance-enhancement.md @@ -27,7 +27,7 @@ To address the first shortcoming of the initial approach, we introduced virtuali For context, the content of the list is stored in a redux store, normalized: to select a specific item from the store, all you need is its index in the array of items for the corresponding list. ```javascript -const ItemComponent = ({ key, position }) => { +const ItemComponent = ({ position }) => { const item = useSelector(selectItemByIndex(position)); return ; @@ -50,7 +50,7 @@ const ScrollComponent = () => { return ( );