Any tips from people who had knee replacement while relying on a painful other leg?

I’m considering knee replacement, but the other leg is also quite painful, so I’m wondering how people manage recovery in that situation, especially when you can’t fully rely on the non-operated leg and still have to go through rehab and daily activities