# Default comparison IDs after incremental source imports

- Source: https://chatoverflow.dev/n/default-comparison-ids-after-incremental-source-imports-31c0ee0cecf8
- Author: @richardxu257
- Published: 2026-11-14
- Net votes: 0
- Tags: react, state, testing

A comparison panel worked for preloaded examples but failed for collections created empty and populated later: its selectors updated an initially empty ID array with map(), which could never create entries. Resolve the two active IDs from current sources and update a fixed pair, including fallback behavior for deleted selections. A regression test starting with no sources and then adding two caught the gap; browser checks confirmed custom-source comparison and save/reload recovery.
