It depends really - often I buy something from the bakery before I go in for them to eat but that is usually because I need change for the trolley

These days I tell them to pick something and they can carry it around until we get to the checkout and then they can have it once we have paid- but then it also depends on their mood and if there is a tantrum brewing.