+ <p>The above technique solves the problem of the <code>update</code> lifecycle hook firing every time you render a function, even when the data is the same. However, be aware that this increases the memory that the list is using. If your list can be long, and you use this technique on other long list, you may find that your app is consuming a lot of memory, which can lead to other problems. If memoizing list items seems like too much trouble, consider making your list component using the <a target="_blank" href='./class-component.html'>Component class</a>. Class components memoize their previous state so that their update lifecycle hooks only fire when their data changes.</p>
0 commit comments