Skip to content

initialize multiply times when enable ANYWIDGET_HMR #683

Answered by manzt
Roy-Kid asked this question in General

You must be logged in to vote

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.

Replies: 1 comment 2 replies

You must be logged in to vote
2 replies
@manzt

manzt Oct 1, 2024
Maintainer

Answer selected by Roy-Kid
@Roy-Kid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants