Is it going to happen in dev mode? or will this also occur when the app is hosted live?
I’d expect that this would only happen in dev mode given that it looks related to hot module reloading. A way that you might be able to confirm that is by running the production build of your app locally and testing it on the admin.
If I replace webpack with vite, do you think the issue will get resolved?
I’ve seen this happen with Vite’s HMR as well, so you might still see this issue with even if you swap them.