Onions are going to spoil faster in the refrigerator than on the counter. They’re going to get moldy and mushy before you know it. It is best to store onions at room temperature, but keep them out of direct sunlight.
Once the onion is peeled and cut, you’ll want to cool it down. Just place it in a sealed bag and store it in a vegetable drawer.