You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working on my canvas experimentation I had the same Flickering problem with HMR.
For me it was due to event registration using addEventListener because the previous one isn't removed moving the mouse for example still trigger the old one and because the previous Elmish app isn't destroyed there is some kind of a conflict probably and depending on which event take place the App 1 or 2 render.
Edit: I put it here just so we can later take a look at this issue if needed and if we have the time for it.
The text was updated successfully, but these errors were encountered:
Ah, it can be. Does HMR work if we remove the hash change event listener? I did it thinking of the REPL in a frame where you would send new code through params, but we're getting more events now. If this is indeed the problem, I can think of two solutions:
Disable the event listener in debug mode with #if !DEBUG (easiest)
Implement Elmish navigation so it's easier to manage more actions through the URL
When working on my canvas experimentation I had the same Flickering problem with HMR.
For me it was due to event registration using
addEventListener
because the previous one isn't removed moving the mouse for example still trigger the old one and because the previous Elmish app isn't destroyed there is some kind of a conflict probably and depending on which event take place the App 1 or 2 render.Edit: I put it here just so we can later take a look at this issue if needed and if we have the time for it.
The text was updated successfully, but these errors were encountered: