There are many ways to clean the razor during shaving.
Personally I prefer a wet sponge lying on the counter, right next to the wash basin.
If I don't use that, I just rinse under running water.