Not sure why this is happening.
Same problem occurs with editing a comment, but funnily enough not with editing a post. When editing a post I still have to refresh to see the changes take place, but the little loading icon doesn’t stick around forever.
Tracking as issue 3660 on Lemmy Github.