Document the design decisions

This commit is contained in:
Ivan Akulov
2023-11-25 02:18:58 +01:00
parent d1a5bc75ab
commit d4484be0c3
2 changed files with 28 additions and 0 deletions
@@ -49,6 +49,11 @@ function MiniMapNodes({
return (
<>
{nodes.map((nodeId) => (
// The split of responsibilities between MiniMapNodes and
// NodeComponentWrapper may appear weird. However, its designed to
// minimize the cost of updates when individual nodes change.
//
// For more details, see a similar commit in `NodeRenderer/index.tsx`.
<NodeComponentWrapper
key={nodeId}
id={nodeId}