paf31 / purescript-thermite

A simple PureScript wrapper for React
MIT License
350 stars 55 forks source link

Firebug or the Firefox console lead to event loss when activated #57

Closed danse closed 8 years ago

danse commented 8 years ago

I built a very simple page featuring an input field and a submit button. The code corresponding to that page is here.

Now the page seems to work correctly right after being loaded, but keeping the page open for a few minutes performance degrades, up to the point where keyboard events on the input get missed. For example, if i type abcdefghi on the keyboard, just acefhi would show up.

I asked for help about this in the chat, but nobody can reproduce the issue on that page. I am using Firefox 44.0.2 on Linux. I can see that the processor gets used a lot (almost one full core) by Firefox while i type in the input. I am not sure what am i doing wrong. First of all, it would be nice to find someone who can reproduce this. How do you suggest me to submit the test case?

danse commented 8 years ago

Found more info. Waiting is not enough to reproduce the problem, the page works fine even after a while. The way i can reproduce the problem is by turning the Firefox web console on. I have Firebug installed.

There are other weird behaviours related to the console: after turning the console off again, i can type at any speed, but submission of the entry won't work until i will turn the console on again and try another submission.

I have no idea how can Firefox or Firebug get into the event flow, but at least it is useful to know that they can have such a disrupting effect!

danse commented 8 years ago

Firebug 2.0.14

danse commented 8 years ago

Apparently this can be attributed to React itself https://github.com/facebook/react/issues/5258. Weird that there is so little feedback on that issue. Anyway, closing this