Skip to main content
rule CX Codex

list-performance-virtualize — Claude Code rule for lists

list-performance-virtualize is a Claude Code rule that recommends virtualized lists for scrollable content. It applies while building list-based screens.

AGPL-3.0 ★ 88 updated 2026-11-17

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/rules/list-performance-virtualize.md
Open on GitHub

What list-performance-virtualize does

The rule favors a list virtualizer over placing mapped children inside ScrollView. Its examples use LegendList and FlashList, which mount items as they enter the visible area rather than creating every row at once.

The recommendation also covers short lists. The rule names feeds, profiles, settings, and search results as places where it applies, and its examples use React components. For Claude Code, place the rule at .claude/rules/list-performance-virtualize.md.

What it helps with

  • replace a mapped ScrollView list with virtualization
  • limit how many list items mount at once
  • virtualize a feed or search results
  • choose between LegendList and FlashList

Example prompts for the agent

  • Replace the mapped children in ScrollView with a list virtualizer.
  • Build this feed with LegendList and ItemCard.
  • Rewrite the search results using FlashList.

How to install list-performance-virtualize

Manually: put the files in place

.claude/rules/list-performance-virtualize.md

The paths frontmatter field limits the files

Step by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use

Questions about list-performance-virtualize

How do I install list-performance-virtualize in Claude Code?

Add the rule file at .claude/rules/list-performance-virtualize.md.

What does list-performance-virtualize do?

It recommends virtualizing scrollable lists so items are mounted as they become visible, rather than creating the whole list upfront. The examples use LegendList and FlashList.

Which virtualizers does list-performance-virtualize show?

Its examples present LegendList and FlashList as alternatives to a mapped ScrollView.

Similar IDE rules

All IDE rules for Frontend and UI →

From the same set47

The whole set →
design-system-compound-components design-system-compound-components is a Claude Code rule that forbids raw string children in non-text components. It enforces compound structures like ButtonText and ButtonIcon across the design system. CX Codex +1 ★ 88repo stars ui-expo-image ui-expo-image is a Claude Code rule that swaps React Native's default Image for expo-image. It guides code generation toward blurhash placeholders, disk caching, and list recycling. CX Codex +1 ★ 88repo stars js-hoist-intl js-hoist-intl is a Claude Code rule that moves Intl formatter creation out of renders and loops. It applies to JavaScript code that formats dates, numbers, or relative time. CX Codex +1 ★ 88repo stars react-state-fallback react-state-fallback is a Claude Code rule that enforces reactive fallbacks instead of copying props into component state. It prevents stale UI bugs during parent updates. CX Codex +1 ★ 88repo stars react-state-minimize react-state-minimize is a Claude Code rule that enforces minimal React state. It directs assistants to compute values on render rather than storing redundant state variables. CX Codex +1 ★ 88repo stars rendering-no-falsy-and rendering-no-falsy-and is a Claude Code rule that guards against unsafe conditional JSX rendering. It targets cases where a value may be an empty string or zero. CX Codex +1 ★ 88repo stars ui-native-modals ui-native-modals is a Claude Code rule that directs coding assistants to use native React Native modal elements instead of JavaScript-based bottom sheet packages. CX Codex +1 ★ 88repo stars scroll-position-no-state scroll-position-no-state is a Claude Code rule that forbids keeping scroll position in useState. It applies to React Native scroll handlers. CX Codex +1 ★ 88repo stars

Project sponsors

Companies that keep this analytics open