Handling of snap configuration is currently not working as it should during removals and reverts.
The goal is for snaps to completely reset their configuration if they are removed and then reinstalled, and on reverts the configuration that was in place when the snap was refreshed should be brought back exactly as it was at that time. Instead, at the moment the configuration is preserved as it currently is during all operations.
@pstolowski is taking care of both of those issues in PR #3070.
Good chances that it’ll be in 2.24.