<Details key={selectedItem.id} item={selectedItem} />
02:52
@Kuba @CarlLange A normal way to re-initialize a child component in React is to change the special property called "key". So like if you have a details component with some initialization logic and you choose a new item in the list to show in the details component and you pass that new item into the details, it might update the details display but not re-run the initialization logic for the component. But if you have something like
« first day (3504 days earlier) ← previous day next day → last day (1278 days later) »