only detach/attach if the replaced contents is attached
only detach/attach if the replaced contents is attached
brave/muon,brave/muon,brave/electron,brave/electron,brave/electron,brave/electron,brave/muon,brave/muon,brave/electron,brave/muon,brave/muon,brave/electron