-
I thought I had found a way that worked but I realize now there are some weird compilation side effects. When I've created HMR solutions in the past I've generally passed the Ideally I was trying to make this work: export default _$hot(MyCompnent, import.meta.hot) where export default _$hot(MyCompnent, import.meta.hot.accept);
_$delegateEvents(["click"]) I noticed "click" was getting rewritten to "/src/component/click" which I'm gathering is because the dependency version of hot where you name the dependencies needs the full path but users don't write that so the transformation looks ahead for strings to transform. Sure I could do something with the compiled output but this all points to me likely doing something unintended. Am I right in assuming that unlike some of the older methods (Ie.. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nvm.. I found a new solution.. where I use a factory to create the HOC, and the accept handler.. and keep the hot code in the component. Definitely less clean but probably more expected. |
Beta Was this translation helpful? Give feedback.
Nvm.. I found a new solution.. where I use a factory to create the HOC, and the accept handler.. and keep the hot code in the component. Definitely less clean but probably more expected.