It can be a particular problem with vitamin C and the B vitamins and minerals like potassium, because they are water-soluble and so leach out into cooking water. That's fine in soups and stews ...