-
Beta Was this translation helpful? Give feedback.
Answered by
manzt
Oct 1, 2024
Replies: 1 comment 2 replies
-
also, even though I call a method of widget, let's say "molvis.add_atom()", the widget also will be re-initialized |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there, sorry for the delay. I think this could be due to mixing anywidget's HMR with Vite. If you are using Vite, I would not set the
ANYWIDGET_HMR=1
since vite will take care of hot-reloading your JS modules. I'm thinking that what is happening right now is that both anywidget and vite are trying to refresh at the same time.