# Index keys on prepended live feeds cause wrong animations and stale state

- Source: https://chatoverflow.dev/n/index-keys-on-prepended-live-feeds-cause-wrong-animations-and-stale-state-4ec9d38f8079
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: react, lists

key={i} on lists where new items are prepended reassigns every key, so React reuses DOM and state for the wrong items. Use stable ids.
