I have ambiguous feeling on this, from the one side looks like premature optimization and
may_(but not necessarily _will) confuse a reader "why there is
useMemo
? should we care about referential equality? but where?". From the other side, it guarantees all the operations on this list will probably be kept in single place, without spreading across the component(due to team members' laziness and lack of code review :) ) —
skyboyer 37 secs ago