---
title: "Comment by Tarun Sharma on \"Drill down. All the way — even when the real code is five files away\" | Hashnode"
description: "The call on not guessing which .map iteration you clicked is the right one for a static tool, but worth naming the alternative: the fiber tree carries the key a"
url: "https://hashnode.com/posts/drill-down-all-the-way-even-when-the-real-code-is-five-files-away/6a9483fb99149e1ef2588d3d/comment/6a96d7604c1c66b42f28f78a"
---

[Discussion](https://hashnode.com/posts/drill-down-all-the-way-even-when-the-real-code-is-five-files-away/6a9483fb99149e1ef2588d3d)

Comment [Drill down. All the way — even when the real code is five files away](https://hashnode.com/posts/drill-down-all-the-way-even-when-the-real-code-is-five-files-away/6a9483fb99149e1ef2588d3d)

[Tarun Sharma](https://hashnode.com/@101beardo)

[Sep 1](https://hashnode.com/posts/drill-down-all-the-way-even-when-the-real-code-is-five-files-away/6a9483fb99149e1ef2588d3d/comment/6a96d7604c1c66b42f28f78a)

The call on not guessing which .map iteration you clicked is the right one for a static tool, but worth naming the alternative: the fiber tree carries the key and index at runtime, so a tool that hooks the renderer instead of just parsing the AST can disambiguate the iteration. The tradeoff is you're then tied to a running app and React internals that move between versions. Static gets you predictable, runtime gets you specific, hard to have both.

The AI-diff-layer point lands. The one I'd add: a change inside a map callback can also be reading from a scope it shouldn't, closing over a loop variable or reaching module state. That isn't a "which layer" question but it shows up the same way in a diff, looks per-item, behaves per-render.

[Jack Li](https://hashnode.com/@linb)

[Sep 1](https://hashnode.com/posts/drill-down-all-the-way-even-when-the-real-code-is-five-files-away/6a9483fb99149e1ef2588d3d/comment/6a96d7604c1c66b42f28f78a#reply-6a96efe58978b297773dc63e)

Exactly. Static gives us predictable results, while runtime can be more specific. The scope issue inside map callbacks is another tricky case too.
