Irreversible structural transitions and disorder in electrodes during battery operation can cause electrochemical performance to deteriorate. Now, an innovative design that turns an irreversible phase transition into a partially disordered phase is shown to be effective in improving disordered rocksalt materials.