[Bug?] Icons on GNOME Dock Misbehave on snap Updates

I think this is a bug in snap, but want to confirm here before I file a bug report.

Since I moved to Ubuntu around 2.5 years ago, snap has always had a problem whenever a program updates.

When a snap updates, my Dock will behave as if I don’t have any instances of that application open anymore.

Steps to reproduce:

  • Install software via snap, like Firefox or Visual Studio Code.
  • Launch an instance of the application.
  • Update a snap, Visual Studio Code Insider (code-insider) has very frequent updates for example.
  • Observe the dock.

If I ALT + TAB, I’m still able to access the windows I had opened previously.

When using my dock, clicking the icon will open new windows, and there’s no way for me to see a list of existing windows.

My current workaround is to close all instances of an application, when I reopen it, everything is fine again.

Has anyone else experienced similar behavior, is there a known fix?

System Info

OS: Ubuntu 20.04.2 LTS x86_64
Kernel: 5.8.0-53-generic
WM: Mutter