Cell.equals() Test Pattern
This pattern demonstrates using Cell.equals() for item
identification instead of manual ID generation.
{/* Controls */}
Add Item
Remove Selected
{/* Selected item display */}
{ifElse(
hasSelection,
Selected: {selectedTitle}
,
No item selected
,
)}
{/* Items list - using pre-computed selection state */}
{itemsWithSelection.map((entry) => (
{entry.item.title}
{entry.item.description}
))}
{/* Show count */}
Total items: {computed(() => items.get().length)}
),
items,
selectedItem,
};
},
);