joelpt / sidewise

Persistent sidebar extension for Chrome featuring tree style tabs and tab hibernation.
Creative Commons Zero v1.0 Universal
68 stars 13 forks source link

Exceptions spam in console when using React Devtools #75

Open Hamled opened 5 years ago

Hamled commented 5 years ago

It appears that there is an unfortunate interaction between the Sidewise extension and the React Developer Tools extension.

React Devtools is written to post messages to the window object (see here), which it can do sometimes at a rate of several per second.

At the same time, Sidewise has an event handler for the message event from window, named receivePageEvent. This handler throws an exception whenever it receives an event whose payload doesn't have a name property.

Since none of the React Devtools-originated events include that property, my console is spammed with hundreds of exceptions from Sidewise whenever I'm using React Devtools.