{"version":"2.1.265","anchor":"search-list-virtualization-gains-an-onlayout-callback","canonical_anchor":"search-list-virtualization-gains-an-onlayout-callback","heading":"Search-list virtualization gains an onLayout callback","tier":"internal","area":"UI Components","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.265\/e\/search-list-virtualization-gains-an-onlayout-callback","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.265","markdown":"### Search-list virtualization gains an onLayout callback\n\nVirtualized search list gains a layout-reporting callback\n\n**Unclear.** What consumes the reported layout information, or what visible effect it has, isn't stated.\n\n**What**\n\nThe hook that powers Claude Code's virtualized message list (a list that only renders the visible portion for performance, used for search results) now also returns and uses an `onLayout` callback. A new invisible element is rendered alongside the list specifically to report layout information through this callback.\n\n**Why**\n\nThis gives the list rendering logic a way to react to layout changes, though the finding doesn't specify what it's used for beyond that.\n\n- Area: UI Components\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 0\/5"}