Stove racks are made of different materials depending on the model and make. Some have a non-stick coating that is dishwasher safe, while others do not. To be sure, check your stove's manual or ask the manufacturer if the racks are dishwasher safe before attempting to clean them in this manner.