That is correct. As I debug along the break points, it goes to the ItemDetail and after the line of
const { itemId } = useParams() the itemId is still undefined. But when run in a web browser, itemId has a correct value.
This behavior is similar to this issue But I can not apply the Switch tag to Ionic/React router, as that solution implies.