Problem with potting is (or certainly used to be) that it acts as an insulator. So anything the emits more than a few milliwatts needs a heat sink taken outside the resin.
Also some components can't be immersed. I believe electrolytic capacitors can't.