>>1761558dam, I hope it is an easy fix
>wheel coming loose on the hubmaybe the locknut is not holding the cone fully in place ?
>tightening everything up but I can't get it right. this is a tricky job, important to note is that both the lock nut and the wheel nut/quick release skewer cause additional axial load on the bearing .ie extra pre load
so the cone has to be set slightly more loose than what works when the wheel is not under clamping load
all ways is good to check for physical damage,
if the bearing races are not evenly worn or the axle is bent, the bearing will be tight for some of its rotation (around 1/4 or less) and otherwise loose,
in this case the adjustment has to be around the angles where the bearing is most tight, otherwise the rest of the rotation will be too loose.
the opposite can not be done as the tight spot will become far too tight, and will either fail entirely or have to be worn down over time
a rare condition I have seen is that the cup is not properly located in the hub, from the factory this is Press Fit into the hub so it should not move about.
but I have seen a few times where the cup can be rotated independently of the hub, this causes sliding friction and messes with the pre load, not so good.
"fixxed" with paper, purple locktight, and a mallet, 0/10 cant recommend